Fix off-by-one error in error message.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Nov 2008 11:04:20 +0000 (11:04 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Nov 2008 11:04:20 +0000 (11:04 +0000)
[r23725]

parser.c

index 7bfe397..13c69af 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3019,8 +3019,8 @@ static void parse_enum_entries(type_t *const enum_type)
        eat('{');
 
        if (token.type == '}') {
-               next_token();
                errorf(HERE, "empty enum not allowed");
+               next_token();
                return;
        }