From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23251 invoked by alias); 14 Nov 2014 05:22:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23204 invoked by uid 48); 14 Nov 2014 05:21:56 -0000 From: "e29253 at jp dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/63812] Compilation error due to a large floating point constant truncated to integer Date: Fri, 14 Nov 2014 05:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: e29253 at jp dot ibm.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg01189.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63812 --- Comment #4 from Tatsushi Inagaki --- Ian, Thank you very much for your helpful clarification. I confirmed that the unit test passes with both of GC and GCCGO, when we modify the test from: assertEquals(t, "2.22 PB", HumanSize(2.22*PB)) to: assertEquals(t, "2.22 PB", HumanSize(int64(float64(2.22*PB)))) I will propose this fix to Docker.