From 1ac1f1f889e60004339d6995c584047aebf2b89e Mon Sep 17 00:00:00 2001 From: Carter Li Date: Wed, 16 Jul 2025 15:15:47 +0800 Subject: [PATCH] Chore: silense compiler warnings --- src/common/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/time.h b/src/common/time.h index ed0fd1138..9457dd90d 100644 --- a/src/common/time.h +++ b/src/common/time.h @@ -131,7 +131,7 @@ static inline FFTimeGetAgeResult ffTimeGetAge(uint64_t birthMs, uint64_t nowMs) if (now_tm.tm_yday < birth_tm.tm_yday) result.years--; - birth_tm.tm_year += result.years; + birth_tm.tm_year += (int) result.years; birth_s = mktime(&birth_tm); uint32_t diff_s = (uint32_t) (now_s - birth_s); result.daysOfYear = diff_s / (24 * 60 * 60);