From f33309502a10bc41685e08a23f282b74f61b7f89 Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Thu, 21 Jul 2011 14:05:51 -0700 Subject: [PATCH] Bump the stack size and make the RUST_MIN_STACK env variable accept hex values. --- src/rt/rust_task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 2b33e3d773a..af55208582e 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -18,10 +18,10 @@ static size_t get_min_stk_size() { char *stack_size = getenv("RUST_MIN_STACK"); if(stack_size) { - return atoi(stack_size); + return strtol(stack_size, NULL, 0); } else { - return 0x200000; + return 0x300000; } }