From cb6e12bf3eef68fbccc1bb04c4a652cb51a06fb3 Mon Sep 17 00:00:00 2001 From: Qunxin Liu <48925186+qxliu76@users.noreply.github.com> Date: Sat, 1 Nov 2025 15:39:29 -0700 Subject: [PATCH] [repacker] remap 24 bits links cause they could be roots (#5631) --- src/graph/graph.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/graph.hh b/src/graph/graph.hh index 951b75d45..68f47b48d 100644 --- a/src/graph/graph.hh +++ b/src/graph/graph.hh @@ -1603,7 +1603,7 @@ struct graph_t count++; const uint32_t *v; if (!id_map.has (link.objidx, &v)) continue; - if (only_wide && !(link.width == 4 && !link.is_signed)) continue; + if (only_wide && (link.is_signed || (link.width != 4 && link.width != 3))) continue; reassign_link (link, i, *v, count > num_real); }