|
From: <sv...@va...> - 2015-01-04 22:47:43
|
Author: florian
Date: Sun Jan 4 22:47:32 2015
New Revision: 14848
Log:
Fix a compiler warning about an incompatible format.
Shows up on 32-bit builds only.
Modified:
trunk/drd/tests/local_static.cpp
Modified: trunk/drd/tests/local_static.cpp
==============================================================================
--- trunk/drd/tests/local_static.cpp (original)
+++ trunk/drd/tests/local_static.cpp Sun Jan 4 22:47:32 2015
@@ -35,8 +35,8 @@
for (std::vector<pthread_t>::iterator p = thread.begin(); p != thread.end();
p++) {
if (pthread_create(&*p, 0, thread_func, 0) != 0) {
- fprintf(stderr, "Creation of thread %ld failed\n",
- &*p - &*thread.begin());
+ fprintf(stderr, "Creation of thread %d failed\n",
+ (int)(&*p - &*thread.begin()));
return 1;
}
}
|