mirror of
https://github.com/cc65/cc65.git
synced 2025-02-28 20:29:46 +00:00
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
This commit is contained in:
parent
9cafacaf6d
commit
cb1870de74
@ -58,7 +58,7 @@ unsigned GetLocalLabel (void)
|
|||||||
static unsigned NextLabel = 0;
|
static unsigned NextLabel = 0;
|
||||||
|
|
||||||
/* Check for an overflow */
|
/* Check for an overflow */
|
||||||
if (NextLabel > 0xFFFF) {
|
if (NextLabel >= 0xFFFF) {
|
||||||
Internal ("Local label overflow");
|
Internal ("Local label overflow");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user