瀏覽代碼

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

Thanks to Carlo Cabrera.
Mike Pall 3 年之前
父節點
當前提交
3065c910ad
共有 1 個文件被更改,包括 3 次插入3 次删除
  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 {