X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=date.c;h=3c981f7eb5ebaed1ba621f3d4cd960f14145b97a;hb=48c250a121a425a1860226b6a7061aecfbab5246;hp=68cdcaa3f6268855539fcae02c8e87b965204b4d;hpb=13cbf011a93d93cab524d4a2f68c259ed7e1594b;p=git.git diff --git a/date.c b/date.c index 68cdcaa3f..3c981f7eb 100644 --- a/date.c +++ b/date.c @@ -635,7 +635,7 @@ int parse_date_toffset(const char *date, unsigned long *timestamp, int *offset) /* mktime uses local timezone */ *timestamp = tm_to_time_t(&tm); if (*offset == -1) - *offset = (*timestamp - mktime(&tm)) / 60; + *offset = ((time_t)*timestamp - mktime(&tm)) / 60; if (*timestamp == -1) return -1;