From c1dacf4df99c15ba381487eaea77d897ae7a4b3f Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 4 Oct 2024 14:40:58 -0700 Subject: [PATCH] update to Zig 2024.10-mach (helps hexops/mach#1276) Signed-off-by: Stephen Gutekanst --- build.zig.zon | 4 ++-- src/testing.zig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index b1d49fd5..7e3686be 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -12,8 +12,8 @@ }, .dependencies = .{ .mach_freetype = .{ - .url = "https://pkg.machengine.org/mach-freetype/288ab786fa21216e2420b9d8b42aec8cc17d1a2c.tar.gz", - .hash = "12207fcf92e0ebf400ed9a4f4a3e31b3719bf829db933f2007dd398eb7568e5cc71a", + .url = "https://pkg.machengine.org/mach-freetype/f4f1ba54f488a7181a26b80b655ce28680634e0d.tar.gz", + .hash = "1220cea9d54d0c785e085956adee05338699fb32bb93c678b451c0fe8b54acc46931", .lazy = true, }, .font_assets = .{ diff --git a/src/testing.zig b/src/testing.zig index 75a8c8bd..82a2b738 100644 --- a/src/testing.zig +++ b/src/testing.zig @@ -32,7 +32,7 @@ fn ExpectFloat(comptime T: type) type { fn ExpectVector(comptime T: type) type { const Elem = std.meta.Elem(T); - const len = @typeInfo(T).Vector.len; + const len = @typeInfo(T).vector.len; return struct { expected: T, @@ -115,7 +115,7 @@ fn Expect(comptime T: type) type { if (T == type) return ExpectComptime(T); if (T == f16 or T == f32 or T == f64) return ExpectFloat(T); if (T == []const u8) return ExpectBytes(T); - if (@typeInfo(T) == .Vector) return ExpectVector(T); + if (@typeInfo(T) == .vector) return ExpectVector(T); // Vector and matrix equality const is_vec2 = T == math.Vec2 or T == math.Vec2h or T == math.Vec2d;