diff gen/llvmhelpers.cpp @ 794:661384d6a936

Fix warnings on x86-64. By fvbommel.
author Christian Kamm <kamm incasoftware de>
date Fri, 28 Nov 2008 21:24:08 +0100
parents a45179dfaa43
children 6e7a4c3b64d2
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Thu Nov 27 18:31:09 2008 +0100
+++ b/gen/llvmhelpers.cpp	Fri Nov 28 21:24:08 2008 +0100
@@ -1649,7 +1649,7 @@
     if (T->toBasetype()->ty == Tbool) // otherwise we'd get a mismatch
         sprintf(tmp, "1");
     else
-        sprintf(tmp, "%d", T->size()*8);
+        sprintf(tmp, "%lu", T->size()*8);
     
     // replace # in name with bitsize
     name = td->intrinsicName;