From b5b99c04869b30468a49237c4c09e2f6d0eca4ff Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 14 Jun 2009 05:49:01 +0000 Subject: * localtime.cc (time2): Take a stab at fixing a compiler warning. --- winsup/cygwin/localtime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/localtime.cc') diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc index c65596124..738f1780e 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 (t + 3600 < t) /* Sanity check */ + if (tmp2.tm_sec + 3600 < t) /* Sanity check */ return WRONG; return t + 3600; } -- cgit v1.2.3