From 8687b214e7f19c327a65e2022958d9919631707f Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 30 Sep 2008 20:19:01 +0000 Subject: [PATCH] Another lexer fix --- simgear/nasal/lex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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