From 1193a466d97e8837d9b42c533e74212365190930 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 19 Jan 2006 22:03:17 +0000 Subject: [PATCH] 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 --- src/da65/data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.39.5