<div dir="ltr"><div>Gary,</div><div><br></div><div>On my 32 bit x86, gcc 8</div><div><br></div><div><pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC1" class="gmail-line" lang="plaintext">Size of int: 4 bytes</span>
<span id="gmail-LC2" class="gmail-line" lang="plaintext">Size of long int: 4 bytes</span>
<span id="gmail-LC3" class="gmail-line" lang="plaintext">Size of long long int: 8 bytes</span>
<span id="gmail-LC4" class="gmail-line" lang="plaintext">Size of float: 4 bytes</span>
<span id="gmail-LC5" class="gmail-line" lang="plaintext">Size of double: 8 bytes</span>
<span id="gmail-LC6" class="gmail-line" lang="plaintext">Size of long double: 12 bytes</span>
<span id="gmail-LC7" class="gmail-line" lang="plaintext">Size of char: 1 byte</span>
</pre></div><div>I have cast explicitly to (long double), please review:</div><div><br></div><div><a href="https://gitlab.com/NTPsec/ntpsec/merge_requests/1015">https://gitlab.com/NTPsec/ntpsec/merge_requests/1015</a></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">-- <br>Sanjeev Gupta<br>+65 98551208 <a href="http://www.linkedin.com/in/ghane" target="_blank">http://www.linkedin.com/in/ghane</a></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 17, 2019 at 5:05 AM Gary E. Miller via devel <<a href="mailto:devel@ntpsec.org">devel@ntpsec.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Yo Eric!<br>
<br>
On Fri, 16 Aug 2019 17:01:02 -0400<br>
"Eric S. Raymond via devel" <<a href="mailto:devel@ntpsec.org" target="_blank">devel@ntpsec.org</a>> wrote:<br>
<br>
> Sanjeev Gupta <<a href="mailto:ghane0@gmail.com" target="_blank">ghane0@gmail.com</a>>:<br>
> > Eric,<br>
> > <br>
> > sizeof(double) seems to be 8 bytes. The 8192 * No of Secs per week<br>
> > overflows this. <br>
> <br>
> Huh. If "long double" isn't 16 bytes, we're foing to have a problem.<br>
<br>
How about "long long int"?<br>
<br>
RGDS<br>
GARY<br>
---------------------------------------------------------------------------<br>
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703<br>
<a href="mailto:gem@rellim.com" target="_blank">gem@rellim.com</a> Tel:+1 541 382 8588<br>
<br>
Veritas liberabit vos. -- Quid est veritas?<br>
"If you can't measure it, you can't improve it." - Lord Kelvin<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@ntpsec.org" target="_blank">devel@ntpsec.org</a><br>
<a href="http://lists.ntpsec.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ntpsec.org/mailman/listinfo/devel</a><br>
</blockquote></div>