| ... | @@ -225,7 +225,7 @@ pub const NativeTargetInfo = struct { | ... | @@ -225,7 +225,7 @@ pub const NativeTargetInfo = struct { |
| 225 | }, | 225 | }, |
| 226 | .macosx => { | 226 | .macosx => { |
| 227 | var product_version: [32]u8 = undefined; | 227 | var product_version: [32]u8 = undefined; |
| 228 | var size: usize = @sizeOf(@TypeOf(product_version)); | 228 | var size: usize = product_version.len; |
| 229 | | 229 | |
| 230 | // The osproductversion sysctl was introduced first with | 230 | // The osproductversion sysctl was introduced first with |
| 231 | // High Sierra, thankfully that's also the baseline that Zig | 231 | // High Sierra, thankfully that's also the baseline that Zig |