X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Ftests%2Fmuldiv.c;fp=support%2Fregression%2Ftests%2Fmuldiv.c;h=474afd35394c502986859340acf2cb666b0af0c4;hb=c952b788d3bc57479db3a7c5e156185bcfbdf9f3;hp=36e3ef11efc53eabe74b90496e877ac793eab130;hpb=452ab8743703102ed30a7fbc559fa0f32bbd1482;p=fw%2Fsdcc diff --git a/support/regression/tests/muldiv.c b/support/regression/tests/muldiv.c index 36e3ef11..474afd35 100644 --- a/support/regression/tests/muldiv.c +++ b/support/regression/tests/muldiv.c @@ -51,19 +51,17 @@ testMul(void) i = 5; - LOG(("i*5 == 25 = %u\n", (int)i*5)); + LOG(("i*5 == 25 = %u\n", (int)(i*5))); result = i*5; ASSERT(result == 25); - LOG(("i*-4 == -20 = %u\n", (int)i*-4)); + LOG(("i*-4 == -20 = %u\n", (int)(i*-4))); ASSERT(i*-4 == -20); i = -10; - LOG(("i*12 == -120 = %u\n", (int)i*12)); + LOG(("i*12 == -120 = %u\n", (int)(i*12))); ASSERT(i*12 == -120); - LOG(("i*-3 == 30 = %u\n", (int)i*-3)); + LOG(("i*-3 == 30 = %u\n", (int)(i*-3))); ASSERT(i*-3 == 30); - - LOG(("30 == %u\n", (int)i*-3)); } void