From 28573b754f1fd034b03c169e31510812a9725d32 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 25 Jul 2021 14:57:09 -0400 Subject: rts: Fix inconsistent signatures for collect_pointers Fixes #20160. --- includes/rts/storage/Heap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/rts/storage/Heap.h b/includes/rts/storage/Heap.h index 7a35941656..b950df76e5 100644 --- a/includes/rts/storage/Heap.h +++ b/includes/rts/storage/Heap.h @@ -24,4 +24,4 @@ StgWord heap_view_closureSize(StgClosure *closure); * The caller must ensure that `closure` is not modified (or moved by the GC) * for the duration of the call to `collect_pointers`. */ -StgWord collect_pointers(StgClosure *closure, StgWord size, StgClosure *ptrs[]); +StgWord collect_pointers(StgClosure *closure, StgWord size, StgClosure *ptrs[size]); -- cgit v1.2.1