Typecasting to resolve warning: integer conversion resulted in a change of sign

pull/4548/head
Deepika 2017-06-15 13:37:19 -05:00
parent 251fae34ac
commit 9b5f5a5472
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();
} }