patch 8.2.4207: recursion test fails with MSVC
Problem: Recursion test fails with MSVC.
Solution: Use a smaller limit for MSVC.
diff --git a/src/eval.c b/src/eval.c
index d42e1f8..9d4079d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -3554,8 +3554,14 @@
}
// 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;
diff --git a/src/version.c b/src/version.c
index 16a99ef..6703e8f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4207,
+/**/
4206,
/**/
4205,