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:
56b0c06
)
fixed Number default value
author
kramm
<kramm>
Fri, 2 Jan 2009 19:48:51 +0000
(19:48 +0000)
committer
kramm
<kramm>
Fri, 2 Jan 2009 19:48:51 +0000
(19:48 +0000)
lib/as3/parser.y
patch
|
blob
|
history
diff --git
a/lib/as3/parser.y
b/lib/as3/parser.y
index
2f8212e
..
82d47fb
100644
(file)
--- a/
lib/as3/parser.y
+++ b/
lib/as3/parser.y
@@
-931,7
+931,7
@@
code_t*defaultvalue(code_t*c, classinfo_t*type)
} else if(TYPE_IS_UINT(type)) {
c = abc_pushuint(c, 0);
} else if(TYPE_IS_FLOAT(type)) {
- c = abc_pushdouble(c, 0.0);
+ c = abc_pushnan(c);
} else if(TYPE_IS_BOOLEAN(type)) {
c = abc_pushfalse(c);
} else {