mirror of
https://github.com/ziglang/zig.git
synced 2026-02-18 23:39:17 +00:00
Use .len instead of @sizeOf
This commit is contained in:
parent
84549b3955
commit
3b29a72b3b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user