Blob Blame Raw
From 28584b31f1b3560173c16487f45aad23dc6f9fb5 Mon Sep 17 00:00:00 2001
From: Greg King <gregdk@users.sf.net>
Date: Sun, 30 Jun 2019 22:44:10 -0400
Subject: [PATCH 07/29] 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.
---
 src/ld65/config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ld65/config.c b/src/ld65/config.c
index f8bff2ac..b8699a87 100644
--- a/src/ld65/config.c
+++ b/src/ld65/config.c
@@ -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;
 
-- 
2.21.0