From 1a0e6cd0b408acae39407ff2608949a1f99870c8 Mon Sep 17 00:00:00 2001 From: ktkk Date: Mon, 1 Dec 2025 16:29:28 +0000 Subject: [PATCH] WIP: add missing default case --- src/days/day01.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/days/day01.zig b/src/days/day01.zig index c0c05ed..afc14bf 100644 --- a/src/days/day01.zig +++ b/src/days/day01.zig @@ -60,6 +60,8 @@ fn updatePosition( var mod = @mod(signed_position, signed_upper_bound); if (signed_position < 0) mod += 1; position.* = @intCast(mod); + } else { + position.* = @intCast(signed_position); } }