Remove constant string literal for correction check, use parse_tokval of the current parser state instead. Accidently left it behind from debugging.

This commit is contained in:
Dale Weiler 2013-01-04 11:58:27 +00:00
parent 2d96b2a3ec
commit 5377835f1e

View file

@ -1643,7 +1643,7 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma
* other things as well.
*/
for (i = 0; i < vec_size(parser->correct_variables); i++) {
correct = correct_str(parser->correct_variables[i], "ello");
correct = correct_str(parser->correct_variables[i], parser_tokval(parser));
if (strcmp(correct, parser_tokval(parser))) {
break;
} else if (correct) {