Skip to content

Commit ac8b59a

Browse files
committed
Fix for windows.
1 parent a591623 commit ac8b59a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/js_lexer.mll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ rule initial tokinfo prev = parse
181181
| "0" ['X''x'] hexa+ {
182182
let s = tok lexbuf in
183183
let info = tokinfo lexbuf in
184-
T_NUMBER (s, float_of_string s, info)
184+
T_NUMBER (s, Int64.(to_float (of_string s)), info)
185185
}
186186
| '0'['0'-'7']+ {
187187
let s = tok lexbuf in

0 commit comments

Comments
 (0)