Skip to content

Commit f8d232f

Browse files
committed
tweal
1 parent 96b37f3 commit f8d232f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

jscomp/runtime/caml_int64.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ let float_of_bits (Int64 x : t) : float =
522522
Float64_array.unsafe_get (Float64_array.fromBuffer (Int32_array.buffer int32)) 0 *)
523523

524524
let bits_of_float : float -> t = fun x ->
525-
let buf = ([%raw{|function(x){return new Int32Array(new Float64Array([x]).buffer)}|}] : _ -> _) x in
526-
mk ~lo:(fst buf) ~hi:(snd buf)
525+
let lo,hi = ([%raw{|function(x){return new Int32Array(new Float64Array([x]).buffer)}|}] : _ -> _) x in
526+
mk ~lo ~hi
527527
(* let to_nat (x : int32) = x |> Caml_int32_extern.to_int |> Caml_nativeint_extern.of_int in
528528
529529
let u = Float64_array.make [| x |] in

lib/es6/caml_int64.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ function float_of_bits(x) {
535535
}
536536

537537
function bits_of_float(x) {
538-
var buf = (function(x){return new Int32Array(new Float64Array([x]).buffer)})(x);
539-
return mk(buf[0], buf[1]);
538+
var match = (function(x){return new Int32Array(new Float64Array([x]).buffer)})(x);
539+
return mk(match[0], match[1]);
540540
}
541541

542542
export {

lib/js/caml_int64.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ function float_of_bits(x) {
535535
}
536536

537537
function bits_of_float(x) {
538-
var buf = (function(x){return new Int32Array(new Float64Array([x]).buffer)})(x);
539-
return mk(buf[0], buf[1]);
538+
var match = (function(x){return new Int32Array(new Float64Array([x]).buffer)})(x);
539+
return mk(match[0], match[1]);
540540
}
541541

542542
exports.mk = mk;

0 commit comments

Comments
 (0)