* src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for compl...
[fw/sdcc] / support / regression / tests / muldiv.c
index dc8bd801e1f7dbe2da63c59ad00627f59a1280a0..b354d35278fb7cfef2b613ae533489c3078f8f0b 100644 (file)
@@ -35,7 +35,7 @@ testUnsignedMul(void)
 
     i = 37;
 
-    LOG(("i*3 == 111 = %u\n", i*3));
+    LOG(("i*3 == 111 = %u\n", (int)(i*3)));
     result = i*3;
     ASSERT(result == 111);
 
@@ -98,7 +98,6 @@ testMod(void)
     //    LOG(("i%%17 == 15 = %u\n", (int)(i%9)));
     ASSERT(i%17 == 15);
 
-#if MOD_SIGN_FOLLOWS_DIVIDEND
     //    LOG(("i%%-7 == 2 = %u\n", (int)i%-7));
     ASSERT(i%-7 == 2);
 
@@ -107,5 +106,4 @@ testMod(void)
     ASSERT(i%3 == -1);
     //    LOG(("i%%-5 == -4 = %u\n", (int)i%-5));
     ASSERT(i%-5 == -4);
-#endif
 }