summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-02-22 13:19:57 +0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-29 17:25:49 -0400
commit095e1624df02f303d4c9d1d50cb5327bdafd3b25 (patch)
tree86fd38e597bef6d94d741ff87e63ee240e192823
parent93b8db6b6f5bc43928baea52692433e31498de20 (diff)
downloadhaskell-095e1624df02f303d4c9d1d50cb5327bdafd3b25.tar.gz
[rts] cast return value to struct.
-rw-r--r--rts/linker/macho/plt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/linker/macho/plt.c b/rts/linker/macho/plt.c
index ac84cb1fee..330bde071a 100644
--- a/rts/linker/macho/plt.c
+++ b/rts/linker/macho/plt.c
@@ -50,7 +50,7 @@ makeStub(Section * section,
void* * addr,
uint8_t flags) {
- Stub * s = stgCallocBytes(1, sizeof(Stub), "makeStub");
+ Stub * s = (Stub *)stgCallocBytes(sizeof(Stub), 1, "makeStub");
CHECK(s != NULL);
s->target = *addr;
s->flags = flags;