Skip to content

Commit e95f8c4

Browse files
committed
Bigarray fix
1 parent fa4107c commit e95f8c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runtime/wasm/bigstring.wat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,19 +243,19 @@
243243
(local $c1 i32)
244244
(local $c2 i32)
245245

246-
(local.set $v1 (call $caml_ba_get_view (local.get $vs1)))
247-
(local.set $v2 (call $caml_ba_get_view (local.get $vs2)))
246+
(local.set $v1 (call $caml_ba_get_data (local.get $vs1)))
247+
(local.set $v2 (call $caml_ba_get_data (local.get $vs2)))
248248
(local.set $pos1 (i31.get_s (ref.cast (ref i31) (local.get $vpos1))))
249249
(local.set $pos2 (i31.get_s (ref.cast (ref i31) (local.get $vpos2))))
250250
(local.set $len (i31.get_s (ref.cast (ref i31) (local.get $vlen))))
251251
(loop $loop
252252
(if (i32.lt_u (local.get $i) (local.get $len))
253253
(then
254254
(local.set $c1
255-
(call $dv_get_ui8 (local.get $v1)
255+
(call $ta_get_ui8 (local.get $v1)
256256
(i32.add (local.get $pos1) (local.get $i))))
257257
(local.set $c2
258-
(call $dv_get_ui8 (local.get $v2)
258+
(call $ta_get_ui8 (local.get $v2)
259259
(i32.add (local.get $pos2) (local.get $i))))
260260
(local.set $i (i32.add (local.get $i) (i32.const 1)))
261261
(if (i32.lt_u (local.get $c1) (local.get $c2))

0 commit comments

Comments
 (0)