projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for compl...
[fw/sdcc]
/
support
/
regression
/
tests
/
muldiv.c
diff --git
a/support/regression/tests/muldiv.c
b/support/regression/tests/muldiv.c
index dc8bd801e1f7dbe2da63c59ad00627f59a1280a0..b354d35278fb7cfef2b613ae533489c3078f8f0b 100644
(file)
--- a/
support/regression/tests/muldiv.c
+++ b/
support/regression/tests/muldiv.c
@@
-35,7
+35,7
@@
testUnsignedMul(void)
i = 37;
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);
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);
// 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);
// 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);
ASSERT(i%3 == -1);
// LOG(("i%%-5 == -4 = %u\n", (int)i%-5));
ASSERT(i%-5 == -4);
-#endif
}
}