diff options
| author | spx01 <42381535+spx01@users.noreply.github.com> | 2020-09-21 08:05:39 +0000 |
|---|---|---|
| committer | spx01 <42381535+spx01@users.noreply.github.com> | 2020-09-21 08:05:39 +0000 |
| commit | de2c386d9b486031e406fc1c6d6f641ab069e12c (patch) | |
| tree | 2d8e7860853e023554cf8411cee9a4b3b4b41089 /src | |
| parent | update to follow newer zig versions (diff) | |
| download | glm-zig-de2c386d9b486031e406fc1c6d6f641ab069e12c.tar.gz glm-zig-de2c386d9b486031e406fc1c6d6f641ab069e12c.zip | |
update to follow newer zig versions
Diffstat (limited to 'src')
| -rw-r--r-- | src/matrix.zig | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/matrix.zig b/src/matrix.zig index e107069..9971ee8 100644 --- a/src/matrix.zig +++ b/src/matrix.zig @@ -3,7 +3,7 @@ const math = std.math; const testing = std.testing; pub fn Matrix(comptime N: usize) type { - return packed struct { + return struct { const Self = @This(); pub const Scalar = f32; @@ -40,13 +40,7 @@ pub fn Matrix(comptime N: usize) type { while (i < N) : (i += 1) { comptime var j = 0; while (j < N) : (j += 1) { - result.values[i][j] = brk: { - if (i == j) { - break :brk 1; - } else { - break :brk 0; - } - }; + result.values[i][j] = if (i == j) 1 else 0; } } |
