From: kramm Date: Fri, 2 Jan 2009 19:48:51 +0000 (+0000) Subject: fixed Number default value X-Git-Tag: release-0-9-0~471 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=6f85c5198bbc7c27d0a868a25b23215fd4795c83;hp=56b0c06f04860b7179be9bebaa422f03659b3c56;p=swftools.git fixed Number default value --- 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 {