New config feature - time1 can declare GPS wraparound compensation

Fred Wright fw at fwright.net
Fri Aug 16 22:00:40 UTC 2019


On Fri, 16 Aug 2019, Eric S. Raymond via devel wrote:
> Sanjeev Gupta <ghane0 at gmail.com>:
>>
>> sizeof(double) seems to be 8 bytes.  The 8192 * No of Secs per week
>> overflows this.
>
> Huh. If "long double" isn't 16 bytes, we're foing to have a problem.

There's no guarantee that long double differs from double.  Anything that 
depends on it to do so is nonportable.

That can't be the issue here, anyway, since overflow couldn't have 
happened after converting to floating-point.

Fred Wright


More information about the devel mailing list