# HG changeset patch # User Frits van Bommel # Date 1238291602 -7200 # Node ID ed4b050ada4551e7a7c743f0507da98173bd991f # Parent c6f39553b7024f74ee7f39aa4455cf567ddcf124 Another big-endian fix. (Don't lie to [s]printf...) diff -r c6f39553b702 -r ed4b050ada45 gen/llvmhelpers.cpp --- 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;