From: Florian Krohm Date: Sun, 4 Jan 2015 22:47:32 +0000 (+0000) Subject: Fix a compiler warning about an incompatible format. X-Git-Tag: svn/VALGRIND_3_11_0~738 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4828f7d302d303e7fb08f3f049111ac35d4232a;p=thirdparty%2Fvalgrind.git Fix a compiler warning about an incompatible format. Shows up on 32-bit builds only. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14848 --- diff --git a/drd/tests/local_static.cpp b/drd/tests/local_static.cpp index 86c0fc1273..e84a3158b2 100644 --- a/drd/tests/local_static.cpp +++ b/drd/tests/local_static.cpp @@ -35,8 +35,8 @@ int main(int, char**) for (std::vector::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; } }