diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2021-02-22 13:19:57 +0800 |
---|---|---|
committer | Moritz Angermann <moritz.angermann@gmail.com> | 2021-03-30 00:48:06 -0400 |
commit | 95a94dea3f1b09c643dc588e07175f3a47fb98c2 (patch) | |
tree | dba63fa5f7f5b6f690fa2bdedb71d81d30a302c0 | |
parent | 84eb6b3328c47fb83bbc9d1fa3ec78f8703b6e02 (diff) | |
download | haskell-95a94dea3f1b09c643dc588e07175f3a47fb98c2.tar.gz |
[rts] cast return value to struct.
(cherry picked from commit 89fc14cce3a80ffe02601bae5428401fd43ce4b7)
-rw-r--r-- | rts/linker/macho/plt.c | 2 |
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; |