From 30a768f43ce83c2bd181c899b8c747c8c2a9ce08 Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 2 Jan 2009 19:55:19 +0000 Subject: [PATCH] fixed bug in hex parsing --- lib/as3/tokenizer.lex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/as3/tokenizer.lex b/lib/as3/tokenizer.lex index f523949..304df53 100644 --- a/lib/as3/tokenizer.lex +++ b/lib/as3/tokenizer.lex @@ -339,7 +339,7 @@ static inline int handleint() static inline int handlehex() { - char l = (yytext[0]=='-'); + char l = (yytext[0]=='-')+2; if(yyleng-l>8) syntaxerror("integer overflow"); @@ -359,7 +359,7 @@ static inline int handlehex() if(!l && v>2147483647) syntaxerror("unsigned integer overflow"); - if(l) { + if(l==3) { return setint(-(int)v); } else { return setuint(v); -- 1.7.10.4