File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -522,8 +522,8 @@ let float_of_bits (Int64 x : t) : float =
522
522
Float64_array.unsafe_get (Float64_array.fromBuffer (Int32_array.buffer int32)) 0 *)
523
523
524
524
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
527
527
(* let to_nat (x : int32) = x |> Caml_int32_extern.to_int |> Caml_nativeint_extern.of_int in
528
528
529
529
let u = Float64_array.make [| x |] in
Original file line number Diff line number Diff line change @@ -535,8 +535,8 @@ function float_of_bits(x) {
535
535
}
536
536
537
537
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 ] ) ;
540
540
}
541
541
542
542
export {
Original file line number Diff line number Diff line change @@ -535,8 +535,8 @@ function float_of_bits(x) {
535
535
}
536
536
537
537
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 ] ) ;
540
540
}
541
541
542
542
exports . mk = mk ;
You can’t perform that action at this time.
0 commit comments