We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b5669d commit 4f2f520Copy full SHA for 4f2f520
ports/unix/modtime.c
@@ -189,7 +189,7 @@ static mp_obj_t mod_time_mktime(mp_obj_t tuple) {
189
time.tm_isdst = -1; // auto-detect
190
}
191
time_t ret = mktime(&time);
192
- if (ret == -1) {
+ if (ret == (time_t)-1) {
193
mp_raise_msg(&mp_type_OverflowError, MP_ERROR_TEXT("invalid mktime usage"));
194
195
return timeutils_obj_from_timestamp(ret);
0 commit comments