diff options
| author | 2025-11-23 16:33:29 +0100 | |
|---|---|---|
| committer | 2025-11-23 16:33:29 +0100 | |
| commit | 9c06b225a3f385ad107de7238a4654598b8a4ddf (patch) | |
| tree | 4fa6289a2d734234834e0db331030bfc4ab7bbed /amd64/emit.c | |
| parent | 5e88a89ad7216608265b31458468a92c57fa0351 (diff) | |
amd64/emit: this rbpoff approach is kinda broken..
Diffstat (limited to 'amd64/emit.c')
| -rw-r--r-- | amd64/emit.c | 2 |
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; } } |