From: Christoph Mallon Date: Sat, 15 Nov 2008 22:51:28 +0000 (+0000) Subject: Fix off-by-one error in error message. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=aa371747ce0d09b35d53a2a8d74861b44df4bd45;p=cparser Fix off-by-one error in error message. [r23693] --- diff --git a/parser.c b/parser.c index 0852cec..68a7d17 100644 --- a/parser.c +++ b/parser.c @@ -3592,12 +3592,12 @@ static void parse_declaration_specifiers(declaration_specifiers_t *specifiers) /* type specifiers */ #define MATCH_SPECIFIER(token, specifier, name) \ case token: \ - next_token(); \ if (type_specifiers & specifier) { \ errorf(HERE, "multiple " name " type specifiers given"); \ } else { \ type_specifiers |= specifier; \ } \ + next_token(); \ break MATCH_SPECIFIER(T__Bool, SPECIFIER_BOOL, "_Bool");