* localtime.cc (time2): Take another stab at fixing a compiler warning.
This commit is contained in:
parent
b5b99c0486
commit
313c719cb8
|
@ -1,3 +1,7 @@
|
||||||
|
2009-06-14 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* localtime.cc (time2): Take another stab at fixing a compiler warning.
|
||||||
|
|
||||||
2009-06-14 Christopher Faylor <me+cygwin@cgf.cx>
|
2009-06-14 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* localtime.cc (time2): Take a stab at fixing a compiler warning.
|
* localtime.cc (time2): Take a stab at fixing a compiler warning.
|
||||||
|
|
|
@ -2006,7 +2006,7 @@ time2(struct tm *tmp, void (*funcp) P((const time_t*, long, struct tm*)),
|
||||||
t = time2sub(&tmp2, funcp, offset, okayp, true);
|
t = time2sub(&tmp2, funcp, offset, okayp, true);
|
||||||
if (*okayp)
|
if (*okayp)
|
||||||
{
|
{
|
||||||
if (tmp2.tm_sec + 3600 < t) /* Sanity check */
|
if (t + 3600 < 0) /* Sanity check */
|
||||||
return WRONG;
|
return WRONG;
|
||||||
return t + 3600;
|
return t + 3600;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue