File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1398,7 +1398,6 @@ module Bigarray = struct
1398
1398
let name, (typ : Wasm_ast.value_type ), size, box =
1399
1399
match (kind : Typing.Bigarray.kind ) with
1400
1400
| Float32 ->
1401
- (* ZZZ*)
1402
1401
( " dv_get_f32"
1403
1402
, F32
1404
1403
, 2
@@ -1434,7 +1433,6 @@ module Bigarray = struct
1434
1433
let name, (typ : Wasm_ast.value_type ), size, unbox =
1435
1434
match (kind : Typing.Bigarray.kind ) with
1436
1435
| Float32 ->
1437
- (* ZZZ*)
1438
1436
( " dv_set_f32"
1439
1437
, F32
1440
1438
, 2
Original file line number Diff line number Diff line change @@ -918,7 +918,7 @@ module Generate (Target : Target_sig.S) = struct
918
918
let * cond = Arith. uge j' (Bigarray. dim 1 ta') in
919
919
let * () = instr (W. Br_if (label_index context bound_error_pc, cond)) in
920
920
return () )
921
- (Bigarray. get ~kind ta' Arith. ((i' * Bigarray. dim 0 ta') + j'))
921
+ (Bigarray. get ~kind ta' Arith. ((i' * Bigarray. dim 1 ta') + j'))
922
922
| _ ->
923
923
let * f =
924
924
register_import ~name: " caml_ba_get_2" (Fun (Type. primitive_type 3 ))
@@ -984,7 +984,7 @@ module Generate (Target : Target_sig.S) = struct
984
984
let * () = instr (W. Br_if (label_index context bound_error_pc, cond)) in
985
985
let * cond = Arith. uge j' (Bigarray. dim 1 ta') in
986
986
let * () = instr (W. Br_if (label_index context bound_error_pc, cond)) in
987
- Bigarray. set ~kind ta' Arith. ((i' * Bigarray. dim 0 ta') + j') v')
987
+ Bigarray. set ~kind ta' Arith. ((i' * Bigarray. dim 1 ta') + j') v')
988
988
Value. unit
989
989
| _ ->
990
990
let * f =
@@ -1026,7 +1026,7 @@ module Generate (Target : Target_sig.S) = struct
1026
1026
Bigarray. set
1027
1027
~kind
1028
1028
ta'
1029
- Arith. ((((i' * Bigarray. dim 0 ta') + j') * Bigarray. dim 1 ta') + k')
1029
+ Arith. ((((i' * Bigarray. dim 1 ta') + j') * Bigarray. dim 2 ta') + k')
1030
1030
v')
1031
1031
Value. unit
1032
1032
| _ ->
You can’t perform that action at this time.
0 commit comments