From: cuz Date: Thu, 19 Jan 2006 22:03:17 +0000 (+0000) Subject: Fixed a problem with input files with end address $FFFF. X-Git-Tag: V2.12.0~157 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1193a466d97e8837d9b42c533e74212365190930;p=cc65 Fixed a problem with input files with end address $FFFF. git-svn-id: svn://svn.cc65.org/cc65/trunk@3696 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/da65/data.c b/src/da65/data.c index 2d68816e5..540231b96 100644 --- a/src/da65/data.c +++ b/src/da65/data.c @@ -209,7 +209,7 @@ unsigned AddrTable (void) BytesLeft -= 2; /* If we must define a label here, bail out */ - if (MustDefLabel (PC)) { + if (BytesLeft && MustDefLabel (PC)) { break; } } @@ -279,7 +279,7 @@ unsigned RtsTable (void) BytesLeft -= 2; /* If we must define a label here, bail out */ - if (MustDefLabel (PC)) { + if (BytesLeft && MustDefLabel (PC)) { break; } }