Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/localtime.cc')
-rw-r--r--winsup/cygwin/localtime.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc
index 738f1780e..c6615bd2a 100644
--- a/winsup/cygwin/localtime.cc
+++ b/winsup/cygwin/localtime.cc
@@ -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 (tmp2.tm_sec + 3600 < t) /* Sanity check */
+ if (t + 3600 < 0) /* Sanity check */
return WRONG;
return t + 3600;
}