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:
authorCorinna Vinschen <corinna@vinschen.de>2009-06-14 13:35:35 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-06-14 13:35:35 +0400
commit313c719cb83191e8ea0072edba4d9d399737eac4 (patch)
tree21459e938bd12f5d5b5221c1bc94fbe497ae799a
parentb5b99c04869b30468a49237c4c09e2f6d0eca4ff (diff)
* localtime.cc (time2): Take another stab at fixing a compiler warning.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/localtime.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index b0b87911d..8a4fccd6c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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>
* localtime.cc (time2): Take a stab at fixing a compiler warning.
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;
}