[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/FloatPrecision.c
Chris Lattner
sabre at nondot.org
Mon Nov 27 15:19:29 PST 2006
Changes in directory llvm-test/SingleSource/UnitTests:
FloatPrecision.c updated: 1.2 -> 1.3
---
Log message:
do not depend on undefined behavior
---
Diffs of the changes: (+1 -1)
FloatPrecision.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm-test/SingleSource/UnitTests/FloatPrecision.c
diff -u llvm-test/SingleSource/UnitTests/FloatPrecision.c:1.2 llvm-test/SingleSource/UnitTests/FloatPrecision.c:1.3
--- llvm-test/SingleSource/UnitTests/FloatPrecision.c:1.2 Thu Feb 17 13:05:22 2005
+++ llvm-test/SingleSource/UnitTests/FloatPrecision.c Mon Nov 27 17:19:14 2006
@@ -2,7 +2,7 @@
void print(float X) {
printf("%f\n", X*2147483647);
- printf("%x\n", (unsigned)(X*2147483647));
+ printf("%x\n", (int)(unsigned long long)(X*2147483647));
}
int main() {
More information about the llvm-commits
mailing list