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:
cuz
2001-09-15 11:51:08 +00:00
parent 02be846175
commit c3cb057407
7 changed files with 11 additions and 7 deletions

View File

@@ -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;
}