diff --git a/src/ca65/pseudo.c b/src/ca65/pseudo.c index 5ce4e8c6e..88f609e25 100644 --- a/src/ca65/pseudo.c +++ b/src/ca65/pseudo.c @@ -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;