authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-02-29 23:08:57+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-02-29 23:08:57+01:00
log3b29a72b3b59803307e9040a6832e579901211f3
tree8b2bc9e2092dbebaed7d739eedb2875a46445f9e
parent84549b39550014ca85d34c93381cadbd93080a0e

Use .len instead of @sizeOf


1 files changed, 1 insertions(+), 1 deletions(-)

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