mirror of https://github.com/rusefi/ChibiOS.git
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:
parent
59c835e58d
commit
9dcecbdacd
|
@ -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.*/
|
||||
|
|
Loading…
Reference in New Issue