✘Build failure

Gary E. Miller gem at rellim.com
Fri Sep 1 06:10:40 UTC 2017


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.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170831/5f9d4b96/attachment.bin>


More information about the devel mailing list