update to Zig 2024.10-mach (helps hexops/mach#1276)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
26c5cb5d60
commit
c1dacf4df9
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue