]> git.sur5r.net Git - cc65/blobdiff - src/cc65/parser.c
Bugfix
[cc65] / src / cc65 / parser.c
index b86cafd9ca0f2ee2cc11fe52b3912c3d7acf4312..1e9536c5a35f7b8891865e26e7b46c45cf07af83 100644 (file)
@@ -179,7 +179,7 @@ ExprNode* DoAsm (void)
         * will fail if the next token is also a string token, but that's a
         * syntax error anyway, because we expect a right paren.
         */
-       ResetLiteralOffs (CurTok.IVal);
+       ResetLiteralPoolOffs (CurTok.IVal);
     }
 
     /* Skip the string token */
@@ -589,7 +589,7 @@ static ExprNode* DoFunctionCall (ExprNode* Left)
            }
        } else if (!Ellipsis) {
            /* Too many arguments. Do we have an open param list? */
-           if ((Func->Flags & FD_ELLIPSIS) == 0) {
+           if ((Func->Flags & FD_VARIADIC) == 0) {
                /* End of param list reached, no ellipsis */
                Error ("Too many function arguments");
            }