Re: our compiler can't convert longlong to float? 5.1-RC1

From: leafy <leafy_at_leafy.idv.tw>
Date: Sat, 7 Jun 2003 13:06:31 +0800
On Thu, Jun 05, 2003 at 07:41:11PM +0000, Jan Stocker wrote:
> Another thing with this code.....
> 
> > > #include <stdio.h>
> > > 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
Received on Fri Jun 06 2003 - 20:06:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:10 UTC