summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2022-05-13 20:24:05 +0100
committerPeter Zhu <peter@peterzhu.ca>2022-05-13 16:26:41 -0400
commit708e839dee57bc5ef8f5b21fb4fa620e89caeb52 (patch)
tree9b743a138cb49f39ab98b0daeffc1d813d98c32b
parent51fab06017d1c8d78ecd6aad95b00ab3d94b515f (diff)
Fix compiler warning when USE_RVARGC=0
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5909
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 8f4a32621b..1b3fcd2c67 100644
--- a/gc.c
+++ b/gc.c
@@ -5602,7 +5602,7 @@ gc_sweep_start(rb_objspace_t *objspace)
rb_size_pool_t *size_pool = &size_pools[i];
rb_heap_t *heap = SIZE_POOL_EDEN_HEAP(size_pool);
- gc_sweep_start_heap(objspace, SIZE_POOL_EDEN_HEAP(size_pool));
+ gc_sweep_start_heap(objspace, heap);
#if USE_RVARGC
/* We should call gc_sweep_finish_size_pool for size pools with no pages. */