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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 10 Dec 2014, at 09:29, Christoph Moench-Tegeder <cmt@burggraben.net> wrote:
>
> ## Daniel Morante (daniel@morante.net):
>
>> I have a port that builds fine on a 9.3 amd64, but on 9.3 i386 it fails
>> on this line:
>>
>> inline int64 GetMaxMoney() { return nBestHeight <= HARDFORK_HEIGHT_1 ?
>> 50000000000 * COIN : 25000000000 * COIN; }
>>
>> With the following error:
>>
>> "integer constant is too large for 'long' type"
>
> 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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.26
iEYEARECAAYFAlTPJrcACgkQsF6jCi4glqMCWwCdFzSfe9jnp0eK4hJzYub478lv
c78AnjFdKJYs/Ozr2yjEZaoTaZrHViun
=Ka11
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A190F269-E22F-4EF7-B77F-EFF5581BFF0B>
