From 3065c910ad6027031aabe2dfd3c26a3d0f014b4f Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 22 Jul 2022 12:14:40 +0200 Subject: OSX/iOS/ARM64: Fix generation of Mach-O object files. Thanks to Carlo Cabrera. --- src/jit/bcsave.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jit/bcsave.lua b/src/jit/bcsave.lua index adf197c6..f8ed3a1b 100644 --- a/src/jit/bcsave.lua +++ b/src/jit/bcsave.lua @@ -456,18 +456,18 @@ typedef struct { uint32_t value; } mach_nlist; typedef struct { - uint32_t strx; + int32_t strx; uint8_t type, sect; uint16_t desc; uint64_t value; } mach_nlist_64; typedef struct { - uint32_t magic, nfat_arch; + int32_t magic, nfat_arch; } mach_fat_header; typedef struct { - uint32_t cputype, cpusubtype, offset, size, align; + int32_t cputype, cpusubtype, offset, size, align; } mach_fat_arch; typedef struct { struct { -- cgit v1.2.1