✘Build failure
Eric S. Raymond
esr at thyrsus.com
Fri Sep 1 10:54:11 UTC 2017
Gary E. Miller via devel <devel at ntpsec.org>:
> Yo Eric!
>
> On Thu, 31 Aug 2017 23:35:03 -0400
> "Eric S. Raymond via devel" <devel at ntpsec.org> wrote:
>
> > > Expected 3486372600 Was 104913720
>
> Sure looks like integer overflow.
>
> > Something about the expression "(int32_t)*yearstart + tmp" is
> > computing differently under MacOS than elsewhere. Anyone got any
> > ideas?
>
> yearstart is uint32_t, and our expected result will not fir in a
> uint32_t (3486372600 == 0xCFCDD2F8).
>
> So the compiler is not changing uint32_t to int32_t where we need it to.
It's a good thing the Mac balked. There was a bug in the way I was
passing out the computation result. Embarrassing.
Fred, do you still get this error with xurrebt head?
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Please consider contributing to my Patreon page at https://www.patreon.com/esr
so I can keep the invisible wheels of the Internet turning. Give generously -
the civilization you save might be your own.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170901/3a4f538e/attachment.bin>
More information about the devel
mailing list