From 6bf423df2c3f5c7258f89467d9a5d7d035485d70 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky <pfalcon@users.sourceforge.net> Date: Sat, 21 Mar 2015 02:13:13 +0200 Subject: [PATCH] unix: Bump stack limit and adjust for 64-bitness. Without that, "import http.client" failed due to max recursion. --- unix/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/main.c b/unix/main.c index 6a142f06c..02809d89b 100644 --- a/unix/main.c +++ b/unix/main.c @@ -303,7 +303,7 @@ STATIC void set_sys_argv(char *argv[], int argc, int start_arg) { int main(int argc, char **argv) { prompt_read_history(); - mp_stack_set_limit(32768); + mp_stack_set_limit(40000 * (BYTES_PER_WORD / 4)); pre_process_options(argc, argv); -- GitLab