summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-11-03 11:58:50 -0500
committerBen Gamari <ben@smart-cactus.org>2019-11-03 12:01:43 -0500
commitf8db305589abc3e4c86623451cbc61a1a42f9d3e (patch)
treea1c5d095f0a9bf4febe564c89c90ee2933975af8
parent9980fb58f613ee3363c7e4cb86453e542c6c69aa (diff)
downloadhaskell-wip/openbsd-missing-const.tar.gz
rts: Add missing const in HEAP_ALLOCED_GCwip/openbsd-missing-const
This was previously unnoticed as this code-path is hit on very few platforms (e.g. OpenBSD).
-rw-r--r--rts/sm/HeapAlloc.h2
1 files changed, 1 insertions, 1 deletions
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;