]> git.sur5r.net Git - cc65/commitdiff
.BLANK was also broken
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 14 Sep 2002 21:05:12 +0000 (21:05 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 14 Sep 2002 21:05:12 +0000 (21:05 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1392 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/condasm.c

index 2377ccb1f947351ce3d19d5889b209c3a4563c5f..5d5b4d79ddc497129b5a7692a3577c11005d4f4a 100644 (file)
@@ -279,7 +279,12 @@ void DoConditionals (void)
                D = AllocIf (".IFBLANK", 1);
                NextTok ();
                if (IfCond) {
-                   SetIfCond (D, Tok == TOK_SEP);
+                    if (Tok == TOK_SEP) {
+                        SetIfCond (D, 1);
+                    } else {
+                       SetIfCond (D, 0);
+                        SkipUntilSep ();
+                    }
                }
                IfCond = GetCurrentIfCond ();
                break;