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
This commit is contained in:
@@ -88,6 +88,7 @@ static unsigned DoTable (attr_t Style, unsigned MemberSize, void (*TableFunc) (u
|
|||||||
*/
|
*/
|
||||||
if (Count < MemberSize) {
|
if (Count < MemberSize) {
|
||||||
DataByteLine (Count);
|
DataByteLine (Count);
|
||||||
|
PC += Count;
|
||||||
return Count;
|
return Count;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,6 +173,7 @@ unsigned AddrTable (void)
|
|||||||
/* If just one byte is left, define it and bail out */
|
/* If just one byte is left, define it and bail out */
|
||||||
if (BytesLeft == 1 || GetStyleAttr (PC+1) != atAddrTab) {
|
if (BytesLeft == 1 || GetStyleAttr (PC+1) != atAddrTab) {
|
||||||
DataByteLine (1);
|
DataByteLine (1);
|
||||||
|
++PC;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -237,6 +239,7 @@ unsigned RtsTable (void)
|
|||||||
/* If just one byte is left, define it and bail out */
|
/* If just one byte is left, define it and bail out */
|
||||||
if (BytesLeft == 1 || GetStyleAttr (PC+1) != atRtsTab) {
|
if (BytesLeft == 1 || GetStyleAttr (PC+1) != atRtsTab) {
|
||||||
DataByteLine (1);
|
DataByteLine (1);
|
||||||
|
++PC;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user