[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/switch.c

Reid Spencer reid at x10sys.com
Fri Jan 19 14:30:55 PST 2007



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)
 {






More information about the llvm-commits mailing list