aboutsummaryrefslogtreecommitdiffhomepage
path: root/amd64/emit.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-23 16:33:29 +0100
committerlemon <lsof@mailbox.org>2025-11-23 16:33:29 +0100
commit9c06b225a3f385ad107de7238a4654598b8a4ddf (patch)
tree4fa6289a2d734234834e0db331030bfc4ab7bbed /amd64/emit.c
parent5e88a89ad7216608265b31458468a92c57fa0351 (diff)
amd64/emit: this rbpoff approach is kinda broken..
Diffstat (limited to 'amd64/emit.c')
-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;
}
}