Date: Wed, 4 Jun 2003 20:20:11 -0700 From: Kris Kennaway <kris@obsecurity.org> To: freebsd-current@freebsd.org Subject: Re: our compiler can't convert longlong to float? 5.1-RC1 Message-ID: <20030605032011.GA40478@rot13.obsecurity.org> In-Reply-To: <20030605014438.GA31113@chihiro.leafy.idv.tw> References: <20030603154040.GA28104@chihiro.leafy.idv.tw> <20030603225547.GA32620@rot13.obsecurity.org> <20030605014438.GA31113@chihiro.leafy.idv.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
iD8DBQE+3rbqWry0BWjoQKURAqNFAJ94/5J82e8nl+FKOOqzProZ4brXJQCfTviF
UXMnFLJlv0fxaPg25VLS6DM=
=3+Dp
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030605032011.GA40478>
