aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--amd64/emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amd64/emit.c b/amd64/emit.c
index 4ad0a04..4c3a9a6 100644
--- a/amd64/emit.c
+++ b/amd64/emit.c
@@ -360,7 +360,7 @@ encode(uchar **pcode, const struct desc *tab, int ntab, enum irclass k, struct o
* access thru RSP (function arguments in the stack) */
mem.base = RSP;
mem.disp -= 8;
- } else if (mem.disp < 0) {
+ } else if (mem.disp <= 0) {
mem.disp += rbpoff;
}
}