1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

Improved warning on comparison of unsigned type < 0.

This commit is contained in:
acqn 2020-08-03 01:15:57 +08:00 committed by Oliver Schmidt
parent 99ac1c46da
commit 2ab7272673

View File

@ -3642,7 +3642,7 @@ void g_lt (unsigned flags, unsigned long val)
/* Give a warning in some special cases */
if (val == 0) {
Warning ("Condition is never true");
Warning ("Comparison of unsigned type < 0 is always false");
AddCodeLine ("jsr return0");
return;
}