From: Julian Seward Date: Wed, 4 May 2011 09:08:34 +0000 (+0000) Subject: scalarts_limitations_fail_NORETURN: fix a format string error X-Git-Tag: svn/VALGRIND_3_7_0~512 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21dc1d9d42df8eebd5ee3353318822db946ddcaf;p=thirdparty%2Fvalgrind.git scalarts_limitations_fail_NORETURN: fix a format string error spotted by IBM's BEAM checker. (Why didn't gcc or clang see this?) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11725 --- diff --git a/helgrind/libhb_core.c b/helgrind/libhb_core.c index 52ad28fe31..cb4530d9ce 100644 --- a/helgrind/libhb_core.c +++ b/helgrind/libhb_core.c @@ -1601,7 +1601,7 @@ static void scalarts_limitations_fail_NORETURN ( Bool due_to_nThrs ) "Sorry. Helgrind can only handle programs that create\n" "%'llu or fewer threads over their entire lifetime.\n" "\n"; - VG_(umsg)(s, ThrID_MAX_VALID - 1024); + VG_(umsg)(s, (ULong)(ThrID_MAX_VALID - 1024)); } else { HChar* s = "\n"