Changes in directory llvm-test/SingleSource/UnitTests/Integer:

switch.c updated: 1.1 -> 1.2
---
Log message:

Add casts to eliminate warnings.


---
Diffs of the changes:  (+2 -2)

 switch.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm-test/SingleSource/UnitTests/Integer/switch.c
diff -u llvm-test/SingleSource/UnitTests/Integer/switch.c:1.1 
llvm-test/SingleSource/UnitTests/Integer/switch.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/switch.c:1.1       Thu Jan 18 
20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/switch.c   Fri Jan 19 16:30:40 2007
@@ -3,8 +3,8 @@
 typedef unsigned int __attribute__ ((bitwidth(7))) int7;
 typedef unsigned int __attribute__ ((bitwidth(3))) int3;
 
-const int7 zero = 1 << 8; // constant 0;
-static int3 seven = 0xf; // constant 7;
+const int7 zero = (int7)(1 << 8); // constant 0;
+static int3 seven = (int3)0xf; // constant 7;
 
 int3  test(unsigned char c)
 {



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to