diff --git a/src/cc65/asmlabel.c b/src/cc65/asmlabel.c index 216541b11..fe76f2b85 100644 --- a/src/cc65/asmlabel.c +++ b/src/cc65/asmlabel.c @@ -58,7 +58,7 @@ unsigned GetLocalLabel (void) static unsigned NextLabel = 0; /* Check for an overflow */ - if (NextLabel > 0xFFFF) { + if (NextLabel >= 0xFFFF) { Internal ("Local label overflow"); }