From: Julian Seward Date: Tue, 26 Apr 2011 10:23:54 +0000 (+0000) Subject: Fix a type mismatch that gcc-4.6 warns about. X-Git-Tag: svn/VALGRIND_3_7_0~528 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1ed036fc53df6c0f4254ffc4d66f9c2c8498b45;p=thirdparty%2Fvalgrind.git Fix a type mismatch that gcc-4.6 warns about. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11709 --- diff --git a/drd/tests/tsan_unittest.cpp b/drd/tests/tsan_unittest.cpp index 431a62280c..1ff34b72cc 100644 --- a/drd/tests/tsan_unittest.cpp +++ b/drd/tests/tsan_unittest.cpp @@ -7142,7 +7142,7 @@ BlockingCounter *blocking_counter; int GLOB = 0; // Worker(N) will do 2^N increments of GLOB, each increment in a separate thread -void Worker(int depth) { +void Worker(long depth) { CHECK(depth >= 0); if (depth > 0) { ThreadPool pool(2);