ref: 7d771cb0d93c7331b866af3a4bf2d9503a18d8d0
parent: 85d4c8a52c9a55ae4822f99905c3d49954540e36
author: Szabolcs Nagy <nsz@port70.net>
date: Thu Oct 16 17:57:21 EDT 2014
Fix js_strtod to set the sign of -0 correctly 1/-0 should be -Infinity
--- a/jsdtoa.c
+++ b/jsdtoa.c
@@ -612,6 +612,8 @@
goto out;
ret0:
+ if(flag & Fsign)
+ return -0.0;
return 0;
retnan: