From fd6d00a4ddc4f015f089f0e6c64f0d9840c8cf5a Mon Sep 17 00:00:00 2001 From: mrdudz Date: Sat, 17 Sep 2022 14:41:59 +0200 Subject: [PATCH] revert 6096a24 - this breaks the case when the "label" is an expression containing spaces. fixes bug #1853 --- src/cc65/codeseg.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cc65/codeseg.c b/src/cc65/codeseg.c index 5949c0c6f..e621147ab 100644 --- a/src/cc65/codeseg.c +++ b/src/cc65/codeseg.c @@ -399,10 +399,7 @@ static CodeEntry* ParseInsn (CodeSeg* S, LineInfo* LI, const char* L) default: /* Absolute, maybe indexed */ - L = ReadToken (L, ", ", Arg, sizeof (Arg)); - if (*L == ' ') { - L = SkipSpace (L+1); - } + L = ReadToken (L, ",", Arg, sizeof (Arg)); if (*L == '\0') { /* Absolute, zeropage or branch */ if ((OPC->Info & OF_BRA) != 0) {