diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-06-14 09:35:35 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-06-14 09:35:35 +0000 |
commit | 313c719cb83191e8ea0072edba4d9d399737eac4 (patch) | |
tree | 21459e938bd12f5d5b5221c1bc94fbe497ae799a /winsup/cygwin | |
parent | b5b99c04869b30468a49237c4c09e2f6d0eca4ff (diff) | |
download | newlib-313c719cb83191e8ea0072edba4d9d399737eac4.zip newlib-313c719cb83191e8ea0072edba4d9d399737eac4.tar.gz newlib-313c719cb83191e8ea0072edba4d9d399737eac4.tar.bz2 |
* localtime.cc (time2): Take another stab at fixing a compiler warning.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/localtime.cc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b0b8791..8a4fccd 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 738f178..c6615bd 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; } |