Skip to content

Commit 625e197

Browse files
committed
eval parser -> prefer later type name matches to earlier
1 parent d40c9ed commit 625e197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eval/eval_parser.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ eval_leaf_type_from_name(RADDBG_Parsed *rdbg, String8 name)
470470
U32 *matches = raddbg_matches_from_map_node(rdbg, node, &match_count);
471471
if(match_count != 0)
472472
{
473-
U32 type_node_idx = matches[0];
473+
U32 type_node_idx = matches[match_count-1];
474474
if(type_node_idx < rdbg->type_node_count)
475475
{
476476
RADDBG_TypeNode *type_node = &rdbg->type_nodes[type_node_idx];

0 commit comments

Comments
 (0)