Skip to content

Commit

Permalink
eval parser -> prefer later type name matches to earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfleury committed Jan 14, 2024
1 parent d40c9ed commit 625e197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eval/eval_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ eval_leaf_type_from_name(RADDBG_Parsed *rdbg, String8 name)
U32 *matches = raddbg_matches_from_map_node(rdbg, node, &match_count);
if(match_count != 0)
{
U32 type_node_idx = matches[0];
U32 type_node_idx = matches[match_count-1];
if(type_node_idx < rdbg->type_node_count)
{
RADDBG_TypeNode *type_node = &rdbg->type_nodes[type_node_idx];
Expand Down

0 comments on commit 625e197

Please sign in to comment.