Added an explicit cast.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12909 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2019-07-14 06:31:17 +00:00
parent 59c835e58d
commit 9dcecbdacd
1 changed files with 1 additions and 1 deletions

View File

@ -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.*/