MacOS has the same int sizes as Linux
Source: https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/64bitPorting/transition/transition.html
1 files changed, 1 insertions(+), 1 deletions(-)
src/target.cpp+1-1
| ... | ... | @@ -354,6 +354,7 @@ int get_c_type_size_in_bits(const ZigTarget *target, CIntType id) { |
| 354 | 354 | case ZigLLVM_UnknownOS: |
| 355 | 355 | zig_unreachable(); |
| 356 | 356 | case ZigLLVM_Linux: |
| 357 | case ZigLLVM_Darwin: |
| 357 | 358 | switch (id) { |
| 358 | 359 | case CIntTypeShort: |
| 359 | 360 | case CIntTypeUShort: |
| ... | ... | @@ -387,7 +388,6 @@ int get_c_type_size_in_bits(const ZigTarget *target, CIntType id) { |
| 387 | 388 | zig_unreachable(); |
| 388 | 389 | } |
| 389 | 390 | case ZigLLVM_CloudABI: |
| 390 | | case ZigLLVM_Darwin: |
| 391 | 391 | case ZigLLVM_DragonFly: |
| 392 | 392 | case ZigLLVM_FreeBSD: |
| 393 | 393 | case ZigLLVM_IOS: |