From: andy Date: Tue, 30 Sep 2008 20:19:01 +0000 (+0000) Subject: Another lexer fix X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8687b214e7f19c327a65e2022958d9919631707f;p=simgear.git Another lexer fix --- diff --git a/simgear/nasal/lex.c b/simgear/nasal/lex.c index 685393ad..a3c1ffc6 100644 --- a/simgear/nasal/lex.c +++ b/simgear/nasal/lex.c @@ -257,15 +257,15 @@ static int lexHexLiteral(struct Parser* p, int index) } #define ISNUM(c) ((c) >= '0' && (c) <= '9') -#define NUMSTART(c) (ISNUM(c) || (c)=='+' || (c) == '-') +#define NUMSTART(c) (ISNUM(c) || (c) == '+' || (c) == '-') static int lexNumLiteral(struct Parser* p, int index) { int len = p->len, i = index; unsigned char* buf = (unsigned char*)p->buf; double d; - if(buf[0] == '0' && i+1