more robustness to malformed expressions

This commit is contained in:
Ryan Fleury
2025-05-07 06:25:47 -07:00
parent 84e299e081
commit 2919ecb135
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1353,7 +1353,7 @@ e_push_irtree_and_type_from_expr(Arena *arena, E_IRTreeAndType *root_parent, B32
// left-hand-side of the dot operator as the first argument. this is a fast path // left-hand-side of the dot operator as the first argument. this is a fast path
// which prevents paren nesting in simple cases, to easily chain multiple // which prevents paren nesting in simple cases, to easily chain multiple
// calls - for example, bin(2).digits(4) // calls - for example, bin(2).digits(4)
else if(lhs->kind == E_ExprKind_MemberAccess) else if(lhs->kind == E_ExprKind_MemberAccess && lhs->first->next != &e_expr_nil)
{ {
E_Expr *callee = lhs->first->next; E_Expr *callee = lhs->first->next;
E_Expr *first_arg = e_expr_ref(arena, lhs->first); E_Expr *first_arg = e_expr_ref(arena, lhs->first);
@@ -557,6 +557,7 @@ ev_block_tree_from_eval(Arena *arena, EV_View *view, String8 filter, E_Eval root
{ {
expansion_row_count = viz_expand_info.row_count; expansion_row_count = viz_expand_info.row_count;
} }
expansion_row_count = Min(0x0fffffffffffffffull, expansion_row_count);
// rjf: determine if this expansion supports child expansions // rjf: determine if this expansion supports child expansions
B32 allow_child_expansions = 1; B32 allow_child_expansions = 1;