From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 5D852383E824; Mon, 4 May 2020 09:20:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D852383E824 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] localtime 1.77 X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 0f4bda879283eaf013f86dd80e5588721a811ea0 X-Git-Newrev: b8aa5f7a0fe70a9a53fe4019227271a78758ae67 Message-Id: <20200504092046.5D852383E824@sourceware.org> Date: Mon, 4 May 2020 09:20:46 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2020 09:20:46 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b8aa5f7a0fe70a9a53fe4019227271a78758ae67 commit b8aa5f7a0fe70a9a53fe4019227271a78758ae67 Author: Corinna Vinschen Date: Tue Apr 28 20:58:29 2020 +0200 localtime 1.77 Diff: --- winsup/cygwin/localtime.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc index 2c8cee38d..d3d629618 100644 --- a/winsup/cygwin/localtime.cc +++ b/winsup/cygwin/localtime.cc @@ -1,4 +1,4 @@ -/* $NetBSD: localtime.c,v 1.75 2013/07/17 23:09:26 christos Exp $ */ +/* $NetBSD: localtime.c,v 1.77 2013/07/30 15:30:37 joerg Exp $ */ /* ** This file is in the public domain, so clarified as of @@ -85,7 +85,7 @@ static char privatehid[] = "@(#)private.h 7.48"; #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 $"); +__RCSID("$NetBSD: localtime.c,v 1.77 2013/07/30 15:30:37 joerg Exp $"); #endif /* @@ -2013,7 +2013,7 @@ timesub(const timezone_t sp, const time_t *const timep, } { int_fast32_t seconds; - const time_t half_second = 0.5; + const time_t half_second = (time_t)0.5; seconds = (int_fast32_t)(tdays * SECSPERDAY + half_second); tdays = (time_t)(seconds / SECSPERDAY);