Skip to content

Commit d140dcc

Browse files
committed
Merge pull request #336 from sbriais/fix_windows
Fix for windows.
2 parents a591623 + ac8b59a commit d140dcc

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)