]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
scalarts_limitations_fail_NORETURN: fix a format string error
authorJulian Seward <jseward@acm.org>
Wed, 4 May 2011 09:08:34 +0000 (09:08 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 4 May 2011 09:08:34 +0000 (09:08 +0000)
spotted by IBM's BEAM checker.  (Why didn't gcc or clang see this?)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11725

helgrind/libhb_core.c

index 52ad28fe31e0f02cc74d544b4b1cffb80924b2e3..cb4530d9cea316cf076684443e52b17863a51693 100644 (file)
@@ -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"