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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user