Skip to content

Commit 82d3faa

Browse files
committed
fix
1 parent eef16f2 commit 82d3faa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/glue/wasm/i64.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,6 @@ function i64_to_f64(value: i64): f64 {
225225
return <f64>value;
226226
}
227227

228-
import { CharCode } from "../../util";
229-
230228
// @ts-ignore: decorator
231229
@global
232230
function i64_to_string(value: i64, unsigned: bool = false): string {

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2413,7 +2413,7 @@ function readBuffer(ptr: usize, len: i32): Uint8Array {
24132413

24142414
export function readString(ptr: usize): string | null {
24152415
if (!ptr) return null;
2416-
var arr = new Array<u32>();
2416+
var arr = new Array<i32>();
24172417
// the following is based on Emscripten's UTF8ArrayToString
24182418
var cp: u32;
24192419
var u1: u32, u2: u32, u3: u32, u4: u32, u5: u32;

0 commit comments

Comments
 (0)