]> git.sur5r.net Git - cc65/blobdiff - src/cc65/expr.c
More polishing to get the line info right
[cc65] / src / cc65 / expr.c
index 1c51d0139183a68e27fed43a4588d224566b6574..995cf39e2519c722bf14a89c31a33a7d7c22111a 100644 (file)
@@ -3128,9 +3128,6 @@ void test (unsigned label, int cond)
     /* Load the value into the primary register */
     exprhs (CF_FORCECHAR, k, &lval);
 
-    /* Check for the closing brace */
-    ConsumeRParen ();
-
     /* Generate the jump */
     if (cond) {
        g_truejump (CF_NONE, label);
@@ -3143,6 +3140,9 @@ void test (unsigned label, int cond)
             g_falsejump (CF_NONE, label);
        }
     }
+
+    /* Check for the closing brace */
+    ConsumeRParen ();
 }