Skip to content

Commit 6bf423d

Browse files
committed
unix: Bump stack limit and adjust for 64-bitness.
Without that, "import http.client" failed due to max recursion.
1 parent db80b65 commit 6bf423d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unix/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ STATIC void set_sys_argv(char *argv[], int argc, int start_arg) {
303303
int main(int argc, char **argv) {
304304
prompt_read_history();
305305

306-
mp_stack_set_limit(32768);
306+
mp_stack_set_limit(40000 * (BYTES_PER_WORD / 4));
307307

308308
pre_process_options(argc, argv);
309309

0 commit comments

Comments
 (0)