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:
parent
99ac1c46da
commit
2ab7272673
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user