diff options
| -rw-r--r-- | ports/unix/modtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/modtime.c b/ports/unix/modtime.c index 41b7c89df..4f0550dbe 100644 --- a/ports/unix/modtime.c +++ b/ports/unix/modtime.c @@ -189,7 +189,7 @@ static mp_obj_t mod_time_mktime(mp_obj_t tuple) { time.tm_isdst = -1; // auto-detect } time_t ret = mktime(&time); - if (ret == -1) { + if (ret == (time_t)-1) { mp_raise_msg(&mp_type_OverflowError, MP_ERROR_TEXT("invalid mktime usage")); } return timeutils_obj_from_timestamp(ret); |
