git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b044460
)
fixed bug in hex parsing
author
kramm
<kramm>
Fri, 2 Jan 2009 19:55:19 +0000
(19:55 +0000)
committer
kramm
<kramm>
Fri, 2 Jan 2009 19:55:19 +0000
(19:55 +0000)
lib/as3/tokenizer.lex
patch
|
blob
|
history
diff --git
a/lib/as3/tokenizer.lex
b/lib/as3/tokenizer.lex
index
f523949
..
304df53
100644
(file)
--- 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);