mirror of
https://github.com/ccxvii/mujs.git
synced 2026-09-25 19:23:34 +08:00
Use explicit MAX/MIN_VALUE constants.
DBL_MIN is bigger than 5e-324 which is given in the spec.
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user