Explorar o código

OSX/iOS/ARM64: Fix generation of Mach-O object files.

Thanks to Carlo Cabrera.
Mike Pall %!s(int64=3) %!d(string=hai) anos
pai
achega
3065c910ad
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/jit/bcsave.lua

+ 3 - 3
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 {