summaryrefslogtreecommitdiff
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-02-03 12:55:18 +0100
committerBram Moolenaar <Bram@vim.org>2015-02-03 12:55:18 +0100
commit2459a5ecaa43c8549ea53e9364253ff891676da5 (patch)
treeb503323856e11d0e1e47e6c81875d32b1541ee04 /src/if_python.c
parent4ac163ae5f137af236931e778660cf7878d70c25 (diff)
downloadvim-git-2459a5ecaa43c8549ea53e9364253ff891676da5.tar.gz
updated for version 7.4.609v7.4.609
Problem: For complicated list and dict use the garbage collector can run out of stack space. Solution: Use a stack of dicts and lists to be marked, thus making it iterative instead of recursive. (Ben Fritz)
Diffstat (limited to 'src/if_python.c')
-rw-r--r--src/if_python.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/if_python.c b/src/if_python.c
index b7bfa785c..2ef0dfc9a 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -1567,8 +1567,8 @@ Py_GetProgramName(void)
}
#endif /* Python 1.4 */
- void
+ int
set_ref_in_python (int copyID)
{
- set_ref_in_py(copyID);
+ return set_ref_in_py(copyID);
}