Skip to content

Commit d5b3b8a

Browse files
committed
other cleanup
1 parent 7a0d1f1 commit d5b3b8a

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/compiler.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,6 @@ export class Compiler extends DiagnosticEmitter {
15161516
}
15171517
var ref = i64_add(stringSegment.offset, i64_new(rtHeaderSize));
15181518
this.currentType = stringInstance.type;
1519-
var ptr: ExpressionRef;
15201519
if (this.options.isWasm64) {
15211520
return module.i64(i64_low(ref), i64_high(ref));
15221521
} else {
@@ -7614,7 +7613,6 @@ export class Compiler extends DiagnosticEmitter {
76147613
let arraySegment = this.ensureStaticArrayHeader(elementType, bufferSegment);
76157614
let arrayAddress = i64_add(arraySegment.offset, i64_new(runtimeHeaderSize));
76167615
this.currentType = arrayType;
7617-
let ptr: ExpressionRef;
76187616
if (program.options.isWasm64) {
76197617
return module.i64(i64_low(arrayAddress), i64_high(arrayAddress));
76207618
} else {

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ export class Relooper {
18321832
// helpers
18331833
// can't do stack allocation here: STACKTOP is a global in WASM but a hidden variable in asm.js
18341834

1835-
function allocU8Array(u8s: u8[] | null): usize {
1835+
function allocU8Array(u8s: Uint8Array | null): usize {
18361836
if (!u8s) return 0;
18371837
var numValues = u8s.length;
18381838
var ptr = memory.allocate(numValues);

0 commit comments

Comments
 (0)