* localtime.cc (time2): Take a stab at fixing a compiler warning.

This commit is contained in:
Christopher Faylor 2009-06-14 05:49:01 +00:00
parent 6a712635dd
commit b5b99c0486
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-06-14 Christopher Faylor <me+cygwin@cgf.cx>
* localtime.cc (time2): Take a stab at fixing a compiler warning.
2009-06-14 Christopher Faylor <me+cygwin@cgf.cx>
* fhandler.cc (fhandler_base::wait_overlapped): Honor nonblocking flag

View File

@ -2006,7 +2006,7 @@ time2(struct tm *tmp, void (*funcp) P((const time_t*, long, struct tm*)),
t = time2sub(&tmp2, funcp, offset, okayp, true);
if (*okayp)
{
if (t + 3600 < t) /* Sanity check */
if (tmp2.tm_sec + 3600 < t) /* Sanity check */
return WRONG;
return t + 3600;
}