[repacker] remap 24 bits links cause they could be roots (#5631)

This commit is contained in:
Qunxin Liu authored and GitHub committed 2025-11-01 16:39:29 -06:00
1 parent f6054b6ccc
commit cb6e12bf3e
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}