summaryrefslogtreecommitdiffstats
path: root/src/typval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/typval.c')
-rw-r--r--src/typval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/typval.c b/src/typval.c
index 6a73719b71..76ce405a70 100644
--- a/src/typval.c
+++ b/src/typval.c
@@ -2114,7 +2114,9 @@ tv_equal(
return tv1->vval.v_class == tv2->vval.v_class;
case VAR_OBJECT:
+ ++recursive_cnt;
(void)typval_compare_object(tv1, tv2, EXPR_EQUAL, ic, &r);
+ --recursive_cnt;
return r;
case VAR_PARTIAL: