public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] localtime 1.75
Date: Mon,  4 May 2020 09:20:36 +0000 (GMT)	[thread overview]
Message-ID: <20200504092036.45F8C383F84B@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=65bf580752db7ac01ecae19dc56aa26ea34f5e47

commit 65bf580752db7ac01ecae19dc56aa26ea34f5e47
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Apr 28 20:56:16 2020 +0200

    localtime 1.75

Diff:
---
 winsup/cygwin/localtime.cc | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc
index a2749654e..3de1e2956 100644
--- a/winsup/cygwin/localtime.cc
+++ b/winsup/cygwin/localtime.cc
@@ -1,4 +1,4 @@
-/*	$NetBSD: localtime.c,v 1.74 2013/07/17 20:13:04 christos Exp $	*/
+/*	$NetBSD: localtime.c,v 1.75 2013/07/17 23:09:26 christos Exp $	*/
 
 /*
 ** This file is in the public domain, so clarified as of
@@ -82,6 +82,11 @@ static char	privatehid[] = "@(#)private.h	7.48";
 # define ATTRIBUTE_PURE /* empty */
 #endif
 #endif
+#if 0
+static char	elsieid[] = "@(#)localtime.cc	8.17";
+#else
+__RCSID("$NetBSD: localtime.c,v 1.75 2013/07/17 23:09:26 christos Exp $");
+#endif
 
 /*
 ** Finally, some convenience items.
@@ -1919,7 +1924,7 @@ offtime(const time_t *const timep, long offset)
 	struct tm *tmp;
 
 	if ((offset > 0 && offset > INT_FAST32_MAX) ||
-	    (offset < 0 && offset > INT_FAST32_MIN)) {
+	    (offset < 0 && offset < INT_FAST32_MIN)) {
 		errno = EOVERFLOW;
 		return NULL;
 	}
@@ -2517,7 +2522,7 @@ timeoff(struct tm *const tmp, long offset)
 	time_t t;
 
 	if ((offset > 0 && offset > INT_FAST32_MAX) ||
-	    (offset < 0 && offset > INT_FAST32_MIN)) {
+	    (offset < 0 && offset < INT_FAST32_MIN)) {
 		errno = EOVERFLOW;
 		return -1;
 	}


                 reply	other threads:[~2020-05-04  9:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200504092036.45F8C383F84B@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).