Use explicit MAX/MIN_VALUE constants.

DBL_MIN is bigger than 5e-324 which is given in the spec.
This commit is contained in:
Tor Andersson
2014-03-13 14:48:39 +01:00
parent 8f87c0a842
commit 375c8a8e08
+2 -2
View File
@@ -83,8 +83,8 @@ void jsB_initnumber(js_State *J)
}
js_newcconstructor(J, jsB_Number, jsB_new_Number, 1);
{
jsB_propn(J, "MAX_VALUE", DBL_MAX);
jsB_propn(J, "MIN_VALUE", DBL_MIN);
jsB_propn(J, "MAX_VALUE", 1.7976931348623157e+308);
jsB_propn(J, "MIN_VALUE", 5e-324);
jsB_propn(J, "NaN", NAN);
jsB_propn(J, "NEGATIVE_INFINITY", -INFINITY);
jsB_propn(J, "POSITIVE_INFINITY", INFINITY);