From a856a8bbcb3ddb0b06855d133484d3e55680bb33 Mon Sep 17 00:00:00 2001 From: Ilya Lakhin Date: Wed, 29 Jul 2020 19:04:33 +0700 Subject: [PATCH] max_expr_depth bug fix --- src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index 0ab09875..f273cab3 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1835,7 +1835,7 @@ fn parse_unary( let mut new_state = ParseState::new( state.engine, #[cfg(not(feature = "unchecked"))] - state.max_expr_depth, + state.max_function_expr_depth, #[cfg(not(feature = "unchecked"))] state.max_function_expr_depth, ); @@ -2884,7 +2884,7 @@ fn parse_stmt( let mut state = ParseState::new( state.engine, #[cfg(not(feature = "unchecked"))] - state.max_expr_depth, + state.max_function_expr_depth, #[cfg(not(feature = "unchecked"))] state.max_function_expr_depth, );