From: Christoph Mallon Date: Thu, 22 Apr 2010 16:19:16 +0000 (+0000) Subject: Slightly simplify checking octal numbers in the lexer. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=55374ba206009fe7dd58aa41bc71ad6513a85f3a;p=cparser Slightly simplify checking octal numbers in the lexer. [r27432] --- diff --git a/lexer.c b/lexer.c index 15c12a0..0877499 100644 --- a/lexer.c +++ b/lexer.c @@ -768,7 +768,7 @@ static void parse_number(void) /* check for invalid octal digits */ for (size_t i= 0; i < size; ++i) { char t = string[i]; - if (t == '8' || t == '9') + if (t >= '8') errorf(&lexer_token.source_position, "invalid digit '%c' in octal number", t); }