changeset 27358:609a8ff1a5d2 v8.2.4207

patch 8.2.4207: recursion test fails with MSVC Commit: https://github.com/vim/vim/commit/50e05254450954f04183efc7bc871527a67868b8 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 24 18:36:39 2022 +0000 patch 8.2.4207: recursion test fails with MSVC Problem: Recursion test fails with MSVC. Solution: Use a smaller limit for MSVC.
author Bram Moolenaar <Bram@vim.org>
date Mon, 24 Jan 2022 19:45:03 +0100
parents 94ebe9223e60
children e5c83812d173
files src/eval.c src/version.c
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -3554,8 +3554,14 @@ eval7(
     }
 
     // Limit recursion to 1000 levels.  At least at 10000 we run out of stack
-    // and crash.
-    if (recurse == 1000)
+    // and crash.  With MSVC the stack is smaller.
+    if (recurse ==
+#ifdef _MSC_VER
+		    300
+#else
+		    1000
+#endif
+		    )
     {
 	semsg(_(e_expression_too_recursive_str), *arg);
 	return FAIL;
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4207,
+/**/
     4206,
 /**/
     4205,