our compiler can't convert longlong to float? 5.1-RC1
Kris Kennaway
kris at obsecurity.org
Wed Jun 4 20:20:12 PDT 2003
On Thu, Jun 05, 2003 at 09:44:38AM +0800, leafy wrote:
> On Tue, Jun 03, 2003 at 03:55:47PM -0700, Kris Kennaway wrote:
> > Post the code it's trying to run. It's possible it's buggy.
> >
> > Kris
> #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);
> exit (0);
> }
>
> this section of code is found in "configure" script in mysql323-client port.
It compiles and runs here without problems.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030604/b165d460/attachment.bin
More information about the freebsd-current
mailing list