commit c6bf9c6942a8d348aeb02e6dff843ec382c3f0b9 (tree)
parent 3664e8e4e2478b129f128dfa49ae13d376651500
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Mon, 15 Feb 2016 16:26:10 -0700
MacOS has the same int sizes as Linux
Source: https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/64bitPorting/transition/transition.html
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/target.cpp b/src/target.cpp
@@ -354,6 +354,7 @@ int get_c_type_size_in_bits(const ZigTarget *target, CIntType id) {
case ZigLLVM_UnknownOS:
zig_unreachable();
case ZigLLVM_Linux:
+ case ZigLLVM_Darwin:
switch (id) {
case CIntTypeShort:
case CIntTypeUShort:
@@ -387,7 +388,6 @@ int get_c_type_size_in_bits(const ZigTarget *target, CIntType id) {
zig_unreachable();
}
case ZigLLVM_CloudABI:
- case ZigLLVM_Darwin:
case ZigLLVM_DragonFly:
case ZigLLVM_FreeBSD:
case ZigLLVM_IOS: