about summary refs log tree commit diff
path: root/aoc/2021/15/part-one.zig
diff options
context:
space:
mode:
Diffstat (limited to 'aoc/2021/15/part-one.zig')
-rw-r--r--aoc/2021/15/part-one.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/aoc/2021/15/part-one.zig b/aoc/2021/15/part-one.zig
index a99e1cb..700bcf4 100644
--- a/aoc/2021/15/part-one.zig
+++ b/aoc/2021/15/part-one.zig
@@ -12,7 +12,7 @@ const Risk = packed struct {
     v: u18,
 
     pub fn lt(self: Risk, other: Risk) Order {
-        return order(@bitCast(u32, self), @bitCast(u32, other));
+        return order(self.v, other.v);
     }
 
     pub fn move(self: Risk, queue: *PQ(Risk), dx: i8, dy: i8) !void {