From 88cfa53dc27c1f6bd4d0d102b8010ad401b69904 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 10 Jan 2013 22:08:49 +0100 Subject: [PATCH] replacing an error message in the enum parsing --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index c457d1b..e38ceda 100644 --- a/parser.c +++ b/parser.c @@ -3487,7 +3487,7 @@ static bool parse_enum(parser_t *parser) old = parse_expression_leave(parser, true, false, false); asvalue = (ast_value*)old; if (!ast_istype(old, ast_value) || asvalue->cvq != CV_CONST || !asvalue->hasvalue) { - parseerror(parser, "enumeration value for must be a constant"); + compile_error(ast_ctx(var), "constant value or expression expected"); goto onerror; } num = (var->constval.vfloat = asvalue->constval.vfloat) + 1; -- 2.39.2