diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-11-03 11:58:50 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-11-03 12:01:43 -0500 |
commit | f8db305589abc3e4c86623451cbc61a1a42f9d3e (patch) | |
tree | a1c5d095f0a9bf4febe564c89c90ee2933975af8 | |
parent | 9980fb58f613ee3363c7e4cb86453e542c6c69aa (diff) | |
download | haskell-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.h | 2 |
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; |