Date: Mon, 2 Feb 2015 08:26:43 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Christoph Moench-Tegeder <cmt@burggraben.net> Cc: freebsd-ports@freebsd.org Subject: Re: Use GCC only for specific ARCH Message-ID: <A190F269-E22F-4EF7-B77F-EFF5581BFF0B@FreeBSD.org> In-Reply-To: <20141210082930.GA92094@elch.exwg.net> References: <5488002D.6080200@morante.net> <20141210082930.GA92094@elch.exwg.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_B4E31A69-7CF3-4AF2-B290-86C2E30A68D1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 10 Dec 2014, at 09:29, Christoph Moench-Tegeder <cmt@burggraben.net> = wrote: >=20 > ## Daniel Morante (daniel@morante.net): >=20 >> I have a port that builds fine on a 9.3 amd64, but on 9.3 i386 it = fails >> on this line: >>=20 >> inline int64 GetMaxMoney() { return nBestHeight <=3D = HARDFORK_HEIGHT_1 ? >> 50000000000 * COIN : 25000000000 * COIN; } >>=20 >> With the following error: >>=20 >> "integer constant is too large for 'long' type" >=20 > I believe the fix is to make sure those constants are interpreted as > "long long", e.g. by post-fixing LL. Or by using the ugly-looking, but more portable INT64_C() macro. -Dimitry --Apple-Mail=_B4E31A69-7CF3-4AF2-B290-86C2E30A68D1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlTPJrcACgkQsF6jCi4glqMCWwCdFzSfe9jnp0eK4hJzYub478lv c78AnjFdKJYs/Ozr2yjEZaoTaZrHViun =Ka11 -----END PGP SIGNATURE----- --Apple-Mail=_B4E31A69-7CF3-4AF2-B290-86C2E30A68D1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A190F269-E22F-4EF7-B77F-EFF5581BFF0B>