From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43879 invoked by alias); 19 Jun 2018 07:25:49 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 43858 invoked by uid 89); 19 Jun 2018 07:25:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: mx2.suse.de From: Andreas Schwab To: Joseph Myers Cc: Subject: Re: Fix scanf rounding of negative floating-point numbers (bug 23280) References: X-Yow: Hand me a pair of leather pants and a CASIO keyboard -- I'm living for today! Date: Tue, 19 Jun 2018 07:25:00 -0000 In-Reply-To: (Joseph Myers's message of "Mon, 18 Jun 2018 20:50:40 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-06/txt/msg00534.txt.bz2 On Jun 18 2018, Joseph Myers wrote: > [BZ #23280] > * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of > floating-point number to strtod functions rather than possibly > negating result of those functions. > * stdio-common/tst-scanf-round.c: New file. > * stdio-common/Makefile (tests): Add tst-scanf-round. > ($(objpfx)tst-scanf-round): Depend on $(libm). Looks good. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."