mirror of https://github.com/ARMmbed/mbed-os.git
Typecasting to resolve warning: integer conversion resulted in a change of sign
parent
251fae34ac
commit
9b5f5a5472
|
@ -105,7 +105,7 @@ time_t _rtc_mktime(const struct tm* time) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result > INT32_MAX) {
|
if (result > INT32_MAX) {
|
||||||
return -1;
|
return (time_t) -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -53,7 +53,7 @@ time_t time(time_t *timer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
time_t t = -1;
|
time_t t = (time_t)-1;
|
||||||
if (_rtc_read != NULL) {
|
if (_rtc_read != NULL) {
|
||||||
t = _rtc_read();
|
t = _rtc_read();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue