aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorspx01 <42381535+spx01@users.noreply.github.com>2020-09-21 08:05:39 +0000
committerspx01 <42381535+spx01@users.noreply.github.com>2020-09-21 08:05:39 +0000
commitde2c386d9b486031e406fc1c6d6f641ab069e12c (patch)
tree2d8e7860853e023554cf8411cee9a4b3b4b41089 /src
parentupdate to follow newer zig versions (diff)
downloadglm-zig-de2c386d9b486031e406fc1c6d6f641ab069e12c.tar.gz
glm-zig-de2c386d9b486031e406fc1c6d6f641ab069e12c.zip
update to follow newer zig versions
Diffstat (limited to 'src')
-rw-r--r--src/matrix.zig10
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;
}
}