]> git.sur5r.net Git - cc65/commitdiff
The .IFNBLANK command was broken
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 14 Sep 2002 20:56:37 +0000 (20:56 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 14 Sep 2002 20:56:37 +0000 (20:56 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1391 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/condasm.c

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