1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 21:32:19 +00:00

Made the ld65 configure file's segment offset attribute accept zero as a value.

Expressions are allowed as values.  Therefore, zero might be set explicitly by some conditions.
This commit is contained in:
Greg King 2019-06-30 22:44:10 -04:00
parent 93b6efcb2f
commit 28584b31f1

View File

@ -732,7 +732,7 @@ static void ParseSegments (void)
case CFGTOK_OFFSET:
FlagAttr (&S->Attr, SA_OFFSET, "OFFSET");
S->Addr = CfgCheckedConstExpr (1, 0x1000000);
S->Addr = CfgCheckedConstExpr (0, 0x1000000);
S->Flags |= SF_OFFSET;
break;