From: uz Date: Wed, 5 Aug 2009 14:29:30 +0000 (+0000) Subject: Fixed an off-by-one error (reported by Greg King - thanks). X-Git-Tag: V2.13.0rc1~259 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cb1870de74536f67317c262f6e4d6be93b805af4;p=cc65 Fixed an off-by-one error (reported by Greg King - thanks). git-svn-id: svn://svn.cc65.org/cc65/trunk@3996 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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"); }