]> git.sur5r.net Git - cc65/commitdiff
Fixed an off-by-one error (reported by Greg King - thanks).
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 5 Aug 2009 14:29:30 +0000 (14:29 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 5 Aug 2009 14:29:30 +0000 (14:29 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3996 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/asmlabel.c

index 216541b1181c4185a3c1a69a8efd33b9debf2531..fe76f2b855b4d47952b4e99516bfb893d515eed9 100644 (file)
@@ -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");
     }