Skip to content

Commit

Permalink
Backport PR #82480 to 7.0 (#82572)
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Mar 9, 2023
1 parent d7aa584 commit 2486cb8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mono/wasm/runtime/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ function assert_int_in_range(value: Number, min: Number, max: Number) {
}

export function _zero_region(byteOffset: VoidPtr, sizeBytes: number): void {
if (((<any>byteOffset % 4) === 0) && ((sizeBytes % 4) === 0))
Module.HEAP32.fill(0, <any>byteOffset >>> 2, sizeBytes >>> 2);
else
Module.HEAP8.fill(0, <any>byteOffset, sizeBytes);
Module.HEAP8.fill(0, <any>byteOffset, sizeBytes + <any>byteOffset);
}

export function setB32(offset: MemOffset, value: number | boolean): void {
Expand Down

0 comments on commit 2486cb8

Please sign in to comment.