X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Ftokenizer.lex;h=304df5356385941bb2d9b16f3e8bc5f3a8b5754f;hb=30a768f43ce83c2bd181c899b8c747c8c2a9ce08;hp=f5239492216828584f350229f79c86f0218661ed;hpb=b0444603a5793f31ec8cb35b1ea416e7f7f080ae;p=swftools.git 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);