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-07 07:32:25 +0800 |
commit | cb200e0657dbb710c40c550f08de6017803bc548 (patch) | |
tree | c06ff9a4c78d97498791664b83d10086904d5c31 | |
parent | d72441fc7f0595639eeb00cdc9b4a7b21896ffb5 (diff) | |
download | haskell-cb200e0657dbb710c40c550f08de6017803bc548.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; |