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/localtime.cc | |
parent | b5b99c04869b30468a49237c4c09e2f6d0eca4ff (diff) | |
download | cygnal-313c719cb83191e8ea0072edba4d9d399737eac4.tar.gz cygnal-313c719cb83191e8ea0072edba4d9d399737eac4.tar.bz2 cygnal-313c719cb83191e8ea0072edba4d9d399737eac4.zip |
* localtime.cc (time2): Take another stab at fixing a compiler warning.
Diffstat (limited to 'winsup/cygwin/localtime.cc')
-rw-r--r-- | winsup/cygwin/localtime.cc | 2 |
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; } |