From 72334f0c4277db7dc0f21bd02be12402fd4d46f8 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 20 Feb 2021 14:05:47 +0800 Subject: [PATCH] Lower release stack overflow protection limit. --- src/engine.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.rs b/src/engine.rs index b5586849..ee54e8bd 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -185,10 +185,10 @@ pub const MAX_FUNCTION_EXPR_DEPTH: usize = 16; #[cfg(not(feature = "unchecked"))] #[cfg(not(debug_assertions))] #[cfg(not(feature = "no_function"))] -pub const MAX_CALL_STACK_DEPTH: usize = 128; +pub const MAX_CALL_STACK_DEPTH: usize = 64; #[cfg(not(feature = "unchecked"))] #[cfg(not(debug_assertions))] -pub const MAX_EXPR_DEPTH: usize = 128; +pub const MAX_EXPR_DEPTH: usize = 64; #[cfg(not(feature = "unchecked"))] #[cfg(not(feature = "no_function"))] #[cfg(not(debug_assertions))]