diff options
Diffstat (limited to 'rts')
-rw-r--r-- | rts/linker/MachO.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/linker/MachO.c b/rts/linker/MachO.c index f8b665a90b..8895482e9f 100644 --- a/rts/linker/MachO.c +++ b/rts/linker/MachO.c @@ -100,8 +100,8 @@ void ocInit_MachO(ObjectCode * oc) { oc->info = (struct ObjectCodeFormatInfo*)stgCallocBytes( - 1, sizeof(struct ObjectCodeFormatInfo), - "ocInit_MachO(struct ObjectCodeFormatInfo)"); + 1, sizeof *oc->info, + "ocInit_MachO(ObjectCodeFormatInfo)"); oc->info->header = (MachOHeader *) oc->image; oc->info->symCmd = NULL; oc->info->segCmd = NULL; |