summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;