fix range check

This commit is contained in:
mrdudz
2025-07-11 18:44:58 +02:00
parent 907d8b26c5
commit c13f7dbdad

View File

@@ -642,7 +642,7 @@ static void DoCharMap (void)
/* Read the index as numerical value */
Index = ConstExpression ();
if (IsByteRange (Index)) {
if (!IsByteRange (Index)) {
/* Value out of range */
ErrorSkip ("Index must be in byte range");
return;