Check for sign problems in compares
git-svn-id: svn://svn.cc65.org/cc65/trunk@932 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -687,7 +687,7 @@ Again:
|
||||
/* Read the number */
|
||||
IVal = 0;
|
||||
while (IsDigit (C)) {
|
||||
if (IVal > (0xFFFFFFFF / 10)) {
|
||||
if (IVal > (long) (0xFFFFFFFFUL / 10)) {
|
||||
Error (ERR_NUM_OVERFLOW);
|
||||
IVal = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user