From ee2dcbee48aedb3c235c3d282e31f653fc8d41c6 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Sun, 19 Apr 2026 17:00:07 -0700 Subject: [PATCH] fix idx shadowing lookup bug in rdim_bake_name_map_insert --- src/lib_rdi_make/rdi_make.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib_rdi_make/rdi_make.c b/src/lib_rdi_make/rdi_make.c index fe1d3ef9..b95aa3fb 100644 --- a/src/lib_rdi_make/rdi_make.c +++ b/src/lib_rdi_make/rdi_make.c @@ -1810,10 +1810,10 @@ rdim_bake_name_map_insert(RDIM_Arena *arena, RDIM_BakeNameMapTopology *map_topol RDI_S32 is_duplicate = 0; for(RDIM_BakeNameChunkNode *n = slot->first; n != 0; n = n->next) { - for(RDI_U64 idx = 0; idx < n->count; idx += 1) + for(RDI_U64 n_idx = 0; n_idx < n->count; n_idx += 1) { - if(rdim_str8_match(n->v[idx].string, string, 0) && - n->v[idx].idx == idx) + if(rdim_str8_match(n->v[n_idx].string, string, 0) && + n->v[n_idx].idx == idx) { is_duplicate = 1; goto break_all;