From d57059f72ed9a34f0589beac4feb41f8738dfdea Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 3 Nov 2019 11:58:50 -0500 Subject: rts: Add missing const in HEAP_ALLOCED_GC This was previously unnoticed as this code-path is hit on very few platforms (e.g. OpenBSD). --- rts/sm/HeapAlloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rts/sm/HeapAlloc.h') diff --git a/rts/sm/HeapAlloc.h b/rts/sm/HeapAlloc.h index cd41adfe4d..58aae1119d 100644 --- a/rts/sm/HeapAlloc.h +++ b/rts/sm/HeapAlloc.h @@ -192,7 +192,7 @@ StgBool HEAP_ALLOCED(const void *p) // updated atomically, but we need to place a lock around operations // that touch the MBlock map. INLINE_HEADER -StgBool HEAP_ALLOCED_GC(void *p) +StgBool HEAP_ALLOCED_GC(const void *p) { StgWord mblock; uint32_t entry_no; -- cgit v1.2.1