Skip to content

Commit

Permalink
update to Zig 2024.10-mach (helps #1276)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
  • Loading branch information
slimsag committed Oct 4, 2024
1 parent 1978ae2 commit 1893ad9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -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 = .{
Expand Down
4 changes: 2 additions & 2 deletions src/testing.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1893ad9

Please sign in to comment.