From 33f238fb3f6fdbb8f87cf92f135e179bebaa2a50 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Thu, 28 Sep 2023 00:51:24 -0500 Subject: [PATCH] time: Change signature of get_jdn() to use int types --- common/lib/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/time.c b/common/lib/time.c index 5e0dabcc..f5643353 100644 --- a/common/lib/time.c +++ b/common/lib/time.c @@ -9,7 +9,7 @@ #include // Julian date calculation from https://en.wikipedia.org/wiki/Julian_day -static uint64_t get_jdn(uint8_t days, uint8_t months, uint16_t years) { +static int get_jdn(int days, int months, int years) { return (1461 * (years + 4800 + (months - 14)/12))/4 + (367 * (months - 2 - 12 * ((months - 14)/12)))/12 - (3 * ((years + 4900 + (months - 14)/12)/100))/4