From 519730612ed35bb8ca1ed8f4fa1c02794bfeb173 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 12 Jun 2007 07:29:25 +0000 Subject: [PATCH] Fixed hangs on certain info files. PC was not incremented when DataByteLine is called. git-svn-id: svn://svn.cc65.org/cc65/trunk@3780 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/da65/data.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/da65/data.c b/src/da65/data.c index 9f4514b87..1569f7aee 100644 --- a/src/da65/data.c +++ b/src/da65/data.c @@ -88,6 +88,7 @@ static unsigned DoTable (attr_t Style, unsigned MemberSize, void (*TableFunc) (u */ if (Count < MemberSize) { DataByteLine (Count); + PC += Count; return Count; } @@ -172,6 +173,7 @@ unsigned AddrTable (void) /* If just one byte is left, define it and bail out */ if (BytesLeft == 1 || GetStyleAttr (PC+1) != atAddrTab) { DataByteLine (1); + ++PC; break; } @@ -237,6 +239,7 @@ unsigned RtsTable (void) /* If just one byte is left, define it and bail out */ if (BytesLeft == 1 || GetStyleAttr (PC+1) != atRtsTab) { DataByteLine (1); + ++PC; break; } -- 2.39.2