From 53f3502d3bdad86f34933e9fc42717cac8f542b2 Mon Sep 17 00:00:00 2001 From: wokes Date: Sun, 18 Jan 2026 17:59:24 +0100 Subject: [PATCH] Fix missed i64 to i32 cast --- src/timezone.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timezone.zig b/src/timezone.zig index be16555..d37dbbd 100644 --- a/src/timezone.zig +++ b/src/timezone.zig @@ -859,7 +859,7 @@ pub const Windows = struct { // In the months between if (time.wMonth > start.wMonth and time.wMonth < end.wMonth) return true; - const days_from_epoch = @divFloor(timestamp, s_per_day); + const days_from_epoch: zeit.Days = @intCast(@divFloor(timestamp, s_per_day)); // first_of_month is the weekday on the first of the month const first_of_month = zeit.weekdayFromDays(days_from_epoch - time.wDay + 1);