Skip to content

Commit 375c8a8

Browse files
committed
Use explicit MAX/MIN_VALUE constants.
DBL_MIN is bigger than 5e-324 which is given in the spec.
1 parent 8f87c0a commit 375c8a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jsnumber.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ void jsB_initnumber(js_State *J)
8383
}
8484
js_newcconstructor(J, jsB_Number, jsB_new_Number, 1);
8585
{
86-
jsB_propn(J, "MAX_VALUE", DBL_MAX);
87-
jsB_propn(J, "MIN_VALUE", DBL_MIN);
86+
jsB_propn(J, "MAX_VALUE", 1.7976931348623157e+308);
87+
jsB_propn(J, "MIN_VALUE", 5e-324);
8888
jsB_propn(J, "NaN", NAN);
8989
jsB_propn(J, "NEGATIVE_INFINITY", -INFINITY);
9090
jsB_propn(J, "POSITIVE_INFINITY", INFINITY);

0 commit comments

Comments
 (0)