From 9c06b225a3f385ad107de7238a4654598b8a4ddf Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 23 Nov 2025 16:33:29 +0100 Subject: amd64/emit: this rbpoff approach is kinda broken.. --- amd64/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'amd64') 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; } } -- cgit v1.2.3