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
13981398 let name, (typ : Wasm_ast.value_type ), size, box =
13991399 match (kind : Typing.Bigarray.kind ) with
14001400 | Float32 ->
1401- (* ZZZ*)
14021401 ( " dv_get_f32"
14031402 , F32
14041403 , 2
@@ -1434,7 +1433,6 @@ module Bigarray = struct
14341433 let name, (typ : Wasm_ast.value_type ), size, unbox =
14351434 match (kind : Typing.Bigarray.kind ) with
14361435 | Float32 ->
1437- (* ZZZ*)
14381436 ( " dv_set_f32"
14391437 , F32
14401438 , 2
Original file line number Diff line number Diff line change @@ -918,7 +918,7 @@ module Generate (Target : Target_sig.S) = struct
918918 let * cond = Arith. uge j' (Bigarray. dim 1 ta') in
919919 let * () = instr (W. Br_if (label_index context bound_error_pc, cond)) in
920920 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'))
922922 | _ ->
923923 let * f =
924924 register_import ~name: " caml_ba_get_2" (Fun (Type. primitive_type 3 ))
@@ -984,7 +984,7 @@ module Generate (Target : Target_sig.S) = struct
984984 let * () = instr (W. Br_if (label_index context bound_error_pc, cond)) in
985985 let * cond = Arith. uge j' (Bigarray. dim 1 ta') in
986986 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')
988988 Value. unit
989989 | _ ->
990990 let * f =
@@ -1026,7 +1026,7 @@ module Generate (Target : Target_sig.S) = struct
10261026 Bigarray. set
10271027 ~kind
10281028 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')
10301030 v')
10311031 Value. unit
10321032 | _ ->
You can’t perform that action at this time.
0 commit comments