From 6f85c5198bbc7c27d0a868a25b23215fd4795c83 Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 2 Jan 2009 19:48:51 +0000 Subject: [PATCH] fixed Number default value --- lib/as3/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/as3/parser.y b/lib/as3/parser.y index 2f8212e..82d47fb 100644 --- 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 { -- 1.7.10.4