File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ import WasmI64 from "runtime/unsafe/wasmi64"
1212import WasmF32 from "runtime/unsafe/wasmf32"
1313import WasmF64 from "runtime/unsafe/wasmf64"
1414import Conv from "runtime/unsafe/conv"
15- import {
16- tagSimpleNumber,
17- allocateBytes,
18- allocateString,
19- } from "runtime/dataStructures"
15+ import { allocateBytes, allocateString } from "runtime/dataStructures"
2016import Exception from "runtime/exception"
2117import Int32 from "int32"
2218import { coerceNumberToWasmI32 } from "runtime/numbers"
@@ -151,7 +147,7 @@ export let rec toString = (bytes: Bytes) => {
151147@disableGC
152148export let rec length = (bytes: Bytes) => {
153149 let b = WasmI32.fromGrain(bytes)
154- let ret = tagSimpleNumber (getSize(b))
150+ let ret = Conv.wasmI32ToNumber (getSize(b))
155151 Memory.decRef(WasmI32.fromGrain(bytes))
156152 Memory.decRef(WasmI32.fromGrain(length))
157153 ret
You can’t perform that action at this time.
0 commit comments