From: Martin Burnicki Date: Thu, 17 Sep 2009 13:28:57 +0000 (+0200) Subject: [Bug 1292] Workaround last VC6 unsigned __int64 kink. X-Git-Tag: NTP_4_2_5P215~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d52f8ccb71fc26b3c1c822782b66426e1eb4415;p=thirdparty%2Fntp.git [Bug 1292] Workaround last VC6 unsigned __int64 kink. bk: 4ab23999XxI9AkOiBsQfzxlPAZBtOQ --- diff --git a/ports/winnt/ntpd/nt_clockstuff.c b/ports/winnt/ntpd/nt_clockstuff.c index 200234a77..a1aefe854 100644 --- a/ports/winnt/ntpd/nt_clockstuff.c +++ b/ports/winnt/ntpd/nt_clockstuff.c @@ -1181,7 +1181,7 @@ ntp_timestamp_from_counter( InterpTimestamp -= FILETIME_1970; result->l_ui = JAN_1970 + (u_int32)(InterpTimestamp / HECTONANOSECONDS); result->l_uf = (u_int32)((InterpTimestamp % HECTONANOSECONDS) * - (FRAC / LL_HNS)); + (ULONGLONG)FRAC / HECTONANOSECONDS); } #endif /* HAVE_PPSAPI */