<div dir="ltr"><div>Eric,</div><div><br></div><div>On a 32-bit debian:</div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">[ 73/101] Compiling ntpd/ntp_io.c<br>../../ntpd/ntp_scanner.c: In function ‘yylex’:<br>../../ntpd/ntp_scanner.c:40:30: warning: integer overflow in expression of type ‘long int’ results in ‘659554304’ [-Woverflow]<br> #define GPS_ERA_13BIT (8192L * SECONDS_IN_WEEK)<br> ^<br>../../ntpd/ntp_scanner.c:940:20: note: in expansion of macro ‘GPS_ERA_13BIT’<br> era_offset += GPS_ERA_13BIT;</span><br> ^~~~~~~~~~~~~<br></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 1:41 AM Eric S. Raymond 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">I've just pushed a change that interprets a 'g' suffix on a clock time1<br>
fudge option as an instruction to add the number of seconds in a <br>
1024-week GPS era. There can be more than one g. Using this, you can<br>
compensate for era rollover in old GPS devices.<br>
<br>
Credit to James Browning for the idea. It's actually done at the<br>
scanner level, so it will work for other double-valued options such<br>
as the time2 fudge - not that I expect that to be used.<br>
<br>
If you have a GPS old enough to require wraparound compensation,<br>
please test; I don't think I do anymore.<br>
<br>
I've also updated the driver documentation, pointing out where this<br>
option is likely to be of use, and the NEWS file.<br>
<br>
Mark: once we've tested this it might merit a point release.<br>
-- <br>
<a href="<a href="http://www.catb.org/~esr/" rel="noreferrer" target="_blank">http://www.catb.org/~esr/</a>">Eric S. Raymond</a><br>
<br>
You know why there's a Second Amendment? In case the government fails to<br>
follow the first one.<br>
-- Rush Limbaugh, in a moment of unaccustomed profundity 17 Aug 1993<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>