mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-16 01:15:03 +01:00
fix offset
This commit is contained in:
parent
93f478546e
commit
a0599342ea
2 changed files with 2 additions and 2 deletions
|
|
@ -215,7 +215,7 @@ function printBlockType(type: Blocktype, f: FmtCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function printMemarg(arg: MemArg, 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}`);
|
f.word(`offset=${arg.offset}`);
|
||||||
}
|
}
|
||||||
if (arg.align !== undefined) {
|
if (arg.align !== undefined) {
|
||||||
|
|
|
||||||
2
test.nil
2
test.nil
|
|
@ -66,4 +66,4 @@ function prInt(x: Int) = (
|
||||||
function println(s: String) = (
|
function println(s: String) = (
|
||||||
print(s);
|
print(s);
|
||||||
print("\n");
|
print("\n");
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue