version 1.32, 2012/10/24 00:30:52 |
version 1.33, 2012/10/25 13:14:32 |
Line 1128 inleap(char **const fields, const int nf |
|
Line 1128 inleap(char **const fields, const int nf |
|
error(_("time before zero")); |
error(_("time before zero")); |
return; |
return; |
} |
} |
if (dayoff < min_time / SECSPERDAY) { |
if (dayoff < (long)(min_time / SECSPERDAY)) { |
error(_("time too small")); |
error(_("time too small")); |
return; |
return; |
} |
} |
if (dayoff > max_time / SECSPERDAY) { |
if (dayoff > (long)(max_time / SECSPERDAY)) { |
error(_("time too large")); |
error(_("time too large")); |
return; |
return; |
} |
} |
Line 2522 rpytime(const struct rule *const rp, con |
|
Line 2522 rpytime(const struct rule *const rp, con |
|
will not work with pre-2004 versions of zic")); |
will not work with pre-2004 versions of zic")); |
} |
} |
} |
} |
if (dayoff < min_time / SECSPERDAY) |
if (dayoff < (long)(min_time / SECSPERDAY)) |
return min_time; |
return min_time; |
if (dayoff > max_time / SECSPERDAY) |
if (dayoff > (long)(max_time / SECSPERDAY)) |
return max_time; |
return max_time; |
t = (zic_t) dayoff * SECSPERDAY; |
t = (zic_t) dayoff * SECSPERDAY; |
return tadd(t, rp->r_tod); |
return tadd(t, rp->r_tod); |