changeset 1167:ed4b050ada45

Another big-endian fix. (Don't lie to [s]printf...)
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 29 Mar 2009 03:53:22 +0200
parents c6f39553b702
children 2bff538fa3b9
files gen/llvmhelpers.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Sun Mar 29 03:27:04 2009 +0200
+++ b/gen/llvmhelpers.cpp	Sun Mar 29 03:53:22 2009 +0200
@@ -1316,7 +1316,7 @@
     }
 
     char tmp[21]; // probably excessive, but covers a uint64_t
-    sprintf(tmp, "%lu", gTargetData->getTypeSizeInBits(DtoType(T)));
+    sprintf(tmp, "%lu", (unsigned long) gTargetData->getTypeSizeInBits(DtoType(T)));
     
     // replace # in name with bitsize
     name = td->intrinsicName;