diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-03-21 02:13:13 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-03-21 02:16:45 +0200 |
commit | 6bf423df2c3f5c7258f89467d9a5d7d035485d70 (patch) | |
tree | 0f9405c35b5d57cfe11746717198ade56eb18269 /unix | |
parent | db80b65402237345aecb1bc4c9575ae975624e2c (diff) | |
download | micropython-6bf423df2c3f5c7258f89467d9a5d7d035485d70.tar.gz micropython-6bf423df2c3f5c7258f89467d9a5d7d035485d70.zip |
unix: Bump stack limit and adjust for 64-bitness.
Without that, "import http.client" failed due to max recursion.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/main.c b/unix/main.c index 6a142f06cc..02809d89b4 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); |