summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-04 12:51:32 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-04 12:51:32 +0000
commitd821751c850f73a21ebcdb771979ce98ad071082 (patch)
treeccd72bf3466c3b56a7254b17e16fcdd9c51e7aa3 /gc.c
parentcbef5b65dbbb89fe560fcc56a67d0ff1d40b5510 (diff)
* gc.c (Init_stack): the type of space is changed to unsigned int
from double. [ruby-dev:21483] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 02aaa86926..0eb2e096c7 100644
--- a/gc.c
+++ b/gc.c
@@ -1336,7 +1336,7 @@ Init_stack(addr)
struct rlimit rlim;
if (getrlimit(RLIMIT_STACK, &rlim) == 0) {
- double space = (double)rlim.rlim_cur*0.2;
+ unsigned int space = rlim.rlim_cur/5;
if (space > 1024*1024) space = 1024*1024;
STACK_LEVEL_MAX = (rlim.rlim_cur - space) / sizeof(VALUE);