fix range check
This commit is contained in:
@@ -642,7 +642,7 @@ static void DoCharMap (void)
|
|||||||
|
|
||||||
/* Read the index as numerical value */
|
/* Read the index as numerical value */
|
||||||
Index = ConstExpression ();
|
Index = ConstExpression ();
|
||||||
if (IsByteRange (Index)) {
|
if (!IsByteRange (Index)) {
|
||||||
/* Value out of range */
|
/* Value out of range */
|
||||||
ErrorSkip ("Index must be in byte range");
|
ErrorSkip ("Index must be in byte range");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user