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

@@ -360,7 +360,7 @@ static int FuncStrAt (void)
Index = ConstExpression ();
/* Must be a valid index */
if (Index >= strlen (Str)) {
if (Index >= (long) strlen (Str)) {
Error (ERR_RANGE);
return 0;
}