From 9dcecbdacdd097d3bdab493701b782f3e8cbb1d9 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 14 Jul 2019 06:31:17 +0000 Subject: [PATCH] Added an explicit cast. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12909 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/LLD/RTCv1/hal_rtc_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/hal/ports/STM32/LLD/RTCv1/hal_rtc_lld.c b/os/hal/ports/STM32/LLD/RTCv1/hal_rtc_lld.c index 86752d3e5..248a9c3cc 100644 --- a/os/hal/ports/STM32/LLD/RTCv1/hal_rtc_lld.c +++ b/os/hal/ports/STM32/LLD/RTCv1/hal_rtc_lld.c @@ -130,7 +130,7 @@ static void rtc_decode(uint32_t tv_sec, RTCDateTime *timespec) { struct tm tim; struct tm *t; - const time_t time = tv_sec; /* Copy with implicit type conversion.*/ + const time_t time = (const time_t)tv_sec; /* Could be 64 bits.*/ /* If the conversion is successful the function returns a pointer to the object the result was written into.*/