From cb1870de74536f67317c262f6e4d6be93b805af4 Mon Sep 17 00:00:00 2001 From: uz Date: Wed, 5 Aug 2009 14:29:30 +0000 Subject: [PATCH] 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 --- src/cc65/asmlabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5