aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 169851f6d9..7aa42da67f 100644
--- a/gc.c
+++ b/gc.c
@@ -617,9 +617,11 @@ mark_locations_array(x, n)
register VALUE *x;
register long n;
{
+ VALUE v;
while (n--) {
- if (is_pointer_to_heap((void *)*x)) {
- gc_mark(*x, 0);
+ v = *x;
+ if (is_pointer_to_heap((void *)v)) {
+ gc_mark(v, 0);
}
x++;
}