fix offset

This commit is contained in:
nora 2023-07-31 16:51:54 +02:00
parent 93f478546e
commit a0599342ea
2 changed files with 2 additions and 2 deletions

View file

@ -215,7 +215,7 @@ function printBlockType(type: Blocktype, f: FmtCtx) {
}
function printMemarg(arg: MemArg, f: FmtCtx) {
if (arg.offset === undefined || arg.offset === 0) {
if (arg.offset !== undefined && arg.offset !== 0) {
f.word(`offset=${arg.offset}`);
}
if (arg.align !== undefined) {

View file

@ -66,4 +66,4 @@ function prInt(x: Int) = (
function println(s: String) = (
print(s);
print("\n");
);
);