Properly parse functions without parameters

This commit is contained in:
Wolfgang Bumiller 2012-07-19 19:53:58 +02:00
parent 532aaba87d
commit 03baa85c43

View file

@ -92,6 +92,9 @@ ast_value *parser_parse_type(parser_t *parser, bool *isfunc)
return NULL;
}
if (parser->tok == ')')
break;
param = parser_parse_type(parser, &dummy);
(void)dummy;