From owner-freebsd-current@FreeBSD.ORG Fri Jun 6 22:06:37 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0AEE37B401 for ; Fri, 6 Jun 2003 22:06:37 -0700 (PDT) Received: from seed.net.tw (sn13.seed.net.tw [139.175.54.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9756043F93 for ; Fri, 6 Jun 2003 22:06:34 -0700 (PDT) (envelope-from leafy@chihiro.leafy.idv.tw) Received: from [210.64.32.183] (port=49403 helo=chihiro.leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.14:2) id 19OVuT-000PF3-8X for freebsd-current@freebsd.org; Sat, 07 Jun 2003 13:06:33 +0800 Received: from chihiro.leafy.idv.tw (nobody@localhost [127.0.0.1]) by chihiro.leafy.idv.tw (8.12.9/8.12.9) with ESMTP id h5756VRb037740 for ; Sat, 7 Jun 2003 13:06:32 +0800 (CST) (envelope-from leafy@chihiro.leafy.idv.tw) Received: (from leafy@localhost) by chihiro.leafy.idv.tw (8.12.9/8.12.9/Submit) id h5756VHW037739 for freebsd-current@freebsd.org; Sat, 7 Jun 2003 13:06:31 +0800 (CST) (envelope-from leafy) Date: Sat, 7 Jun 2003 13:06:31 +0800 From: leafy To: freebsd-current@freebsd.org Message-ID: <20030607050631.GA37726@chihiro.leafy.idv.tw> Mail-Followup-To: freebsd-current@freebsd.org References: <20030603154040.GA28104@chihiro.leafy.idv.tw> <20030603225547.GA32620@rot13.obsecurity.org> <20030605014438.GA31113@chihiro.leafy.idv.tw> <20030605032011.GA40478@rot13.obsecurity.org> <1054842070.684.1.camel@Twoflower.liebende.de> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <1054842070.684.1.camel@Twoflower.liebende.de> User-Agent: Mutt/1.5.4i Subject: Re: our compiler can't convert longlong to float? 5.1-RC1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jun 2003 05:06:38 -0000 On Thu, Jun 05, 2003 at 07:41:11PM +0000, Jan Stocker wrote: > Another thing with this code..... > > > > #include > > > typedef long long longlong; > > > main() > > > { > > > longlong ll=1; > > > float f; > > > FILE *file=fopen("conftestval", "w"); > > > f = (float) ll; > > > fprintf(file,"%g\n",f); > > > close(file); > > I think this has to be "fclose".... changing this to fclose solves the problem. I'll notify the port maintainer. Thank you, Jiawei -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming