From: Juergen Perlinger Date: Sun, 1 Sep 2019 08:33:34 +0000 (+0200) Subject: [Bug 3576] New GPS date function API X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=263e1cefb58b1017de9e4cc67437c821fd490072;p=thirdparty%2Fntp.git [Bug 3576] New GPS date function API - copy/paste bug in division code (32-bit non-ARM targets only) bk: 5d6b825e_WrzwZmFD6VehXoR7f8cag --- diff --git a/libntp/ntp_calendar.c b/libntp/ntp_calendar.c index 5b4f8be65..968bc1efe 100644 --- a/libntp/ntp_calendar.c +++ b/libntp/ntp_calendar.c @@ -649,7 +649,7 @@ ntpcal_daysplit( Q = ~(uint32_t)(~ts->Q_s / SECSPERDAY); else Q = (uint32_t)( ts->Q_s / SECSPERDAY); - R = ts->D_s.lo - Q * SECSPERWEEK; + R = ts->D_s.lo - Q * SECSPERDAY; # else