diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-04 12:51:32 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-04 12:51:32 +0000 |
commit | d821751c850f73a21ebcdb771979ce98ad071082 (patch) | |
tree | ccd72bf3466c3b56a7254b17e16fcdd9c51e7aa3 /gc.c | |
parent | cbef5b65dbbb89fe560fcc56a67d0ff1d40b5510 (diff) | |
download | ruby-d821751c850f73a21ebcdb771979ce98ad071082.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |