From 6fa30d5e22d24e9beb2da8e0f10ce8584ea8ed49 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 7 May 2026 08:32:30 +0200 Subject: [PATCH] fix offset range check --- load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/load.c b/load.c index 5a01f5f..d7eaccb 100644 --- a/load.c +++ b/load.c @@ -174,7 +174,7 @@ rebase(Slice *sl) if (rtype(sl->ref) != RTmp) return; a = &curf->tmp[sl->ref.val].alias; - if (a->offset < 1<<16) + if (a->offset == (short)a->offset) if (a->type == ALoc || a->type == AEsc || a->type == AUnk) {