diff -r 8e311f109b22 Modules/timemodule.c --- a/Modules/timemodule.c Sat Dec 24 10:21:48 2016 +0000 +++ b/Modules/timemodule.c Sat Dec 24 04:31:42 2016 -0600 @@ -399,7 +399,11 @@ char zone[100]; int gmtoff; strftime(zone, sizeof(zone), "%Z", &buf); - gmtoff = timegm(&buf) - when; + /* + fixes warning C4244: '=': conversion from 'time_t' to 'int', + possible loss of data + */ + gmtoff = (int)(timegm(&buf) - when); return tmtotuple(&local, zone, gmtoff); } #endif @@ -1177,9 +1181,17 @@ get_gmtoff(time_t t, struct tm *p) { #ifdef HAVE_STRUCT_TM_TM_ZONE - return p->tm_gmtoff; + /* + fixes warning C4244: 'return': conversion from 'time_t' to 'int', + possible loss of data + */ + return (int)(p->tm_gmtoff); #else - return timegm(p) - t; + /* + fixes warning C4244: 'return': conversion from 'time_t' to 'int', + possible loss of data + */ + return (int)(timegm(p) - t); #endif }