summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-02-22 13:19:57 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2021-03-30 00:48:06 -0400
commit95a94dea3f1b09c643dc588e07175f3a47fb98c2 (patch)
treedba63fa5f7f5b6f690fa2bdedb71d81d30a302c0
parent84eb6b3328c47fb83bbc9d1fa3ec78f8703b6e02 (diff)
downloadhaskell-95a94dea3f1b09c643dc588e07175f3a47fb98c2.tar.gz
[rts] cast return value to struct.
(cherry picked from commit 89fc14cce3a80ffe02601bae5428401fd43ce4b7)
-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;