diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2021-02-22 13:19:57 +0800 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-03-29 17:25:49 -0400 |
commit | 095e1624df02f303d4c9d1d50cb5327bdafd3b25 (patch) | |
tree | 86fd38e597bef6d94d741ff87e63ee240e192823 | |
parent | 93b8db6b6f5bc43928baea52692433e31498de20 (diff) | |
download | haskell-095e1624df02f303d4c9d1d50cb5327bdafd3b25.tar.gz |
[rts] cast return value to struct.
-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; |