Skip to content
Snippets Groups Projects
Commit b31082bf authored by charguer's avatar charguer
Browse files

comment_change

parent a69460f2
No related branches found
No related tags found
No related merge requests found
......@@ -90,3 +90,13 @@ endif
ifeq ($(MAKECMDGOALS),tests/jsref)
-include $(ML_JSREF:.ml=.ml.d)
endif
# TODO
# or pattern -> see JsNumber
# records -> replace warning with code
# lazy -> use a function for fresh locations in copied extracted code
# replace "char list" with strings.
......@@ -136,7 +136,7 @@ let classify_float n =
let to_int32 = fun n ->
match classify_float n with
| FP_normal ->
| FP_normal -> (* ARTHUR hacked this from | FP_normal | FP_subnormal *)
let i32 = 2. ** 32. in
let i31 = 2. ** 31. in
let posint = (if n < 0. then (-1.) else 1.) *. (floor (abs_float n)) in
......@@ -151,7 +151,7 @@ let to_int32 = fun n ->
let to_uint32 = fun n ->
match classify_float n with
| FP_normal ->
| FP_normal -> (* ARTHUR hacked this from | FP_normal | FP_subnormal *)
let i32 = 2. ** 32. in
let posint = (if n < 0. then (-1.) else 1.) *. (floor (abs_float n)) in
let int32bit =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment