summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 7b9873ad21..0398b6b946 100644
--- a/gc.c
+++ b/gc.c
@@ -896,7 +896,8 @@ rb_gc()
alloca(0);
# define STACK_END (&stack_end)
#else
-# define STACK_END alloca(1)
+ VALUE *stack_end = alloca(1);
+# define STACK_END (stack_end)
#endif
alloc_objects = 0;