Use .len instead of @sizeOf

This commit is contained in:
LemonBoy 2020-02-29 23:08:57 +01:00
parent 84549b3955
commit 3b29a72b3b

View File

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