From: Christoph Mallon Date: Mon, 17 Nov 2008 11:04:20 +0000 (+0000) Subject: Fix off-by-one error in error message. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e0a1f3bda124fbc9ed278145548da80902c7358a;p=cparser Fix off-by-one error in error message. [r23725] --- diff --git a/parser.c b/parser.c index 7bfe397..13c69af 100644 --- 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; }