summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-03 11:24:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-03 11:24:24 +0000
commite6bb432c83584f174d9ccc24f6433a781aa9364d (patch)
treeff3d5e2eec6e9d9d2274300c697efe9e8744e20a /gc.c
parent4b6dffad02114175e59729eeb38b5db19c01e571 (diff)
* gc.c (Init_stack): prefer address of argument rather than local
variable to initialize rb_gc_stack_start. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gc.c b/gc.c
index 72cbfb6..7d46110 100644
--- a/gc.c
+++ b/gc.c
@@ -1225,9 +1225,7 @@ Init_stack(addr)
extern void *_SEND;
rb_gc_stack_start = _SEND;
#else
- VALUE start;
-
- if (!addr) addr = &start;
+ if (!addr) addr = (VALUE *)&addr;
rb_gc_stack_start = addr;
#endif
#ifdef HAVE_GETRLIMIT