[Git][NTPsec/ntpsec][master] Correct some casts.
Eric S. Raymond
gitlab at mg.gitlab.com
Tue Oct 11 10:48:26 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
a42af77b by Eric S. Raymond at 2016-10-11T06:45:42-04:00
Correct some casts.
- - - - -
1 changed file:
- ntpd/ntp_loopfilter.c
Changes:
=====================================
ntpd/ntp_loopfilter.c
=====================================
--- a/ntpd/ntp_loopfilter.c
+++ b/ntpd/ntp_loopfilter.c
@@ -788,8 +788,8 @@ local_clock(
if (ntv.constant < 0)
ntv.constant = 0;
- ntv.esterror = (uint32_t)(clock_jitter * 1e6);
- ntv.maxerror = (uint32_t)((sys_rootdelay / 2 +
+ ntv.esterror = (long)(clock_jitter * 1e6);
+ ntv.maxerror = (long)((sys_rootdelay / 2 +
sys_rootdisp) * 1e6);
ntv.status = STA_PLL;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a42af77b2b9901a9c6b9d7df174ec7e7c43475c4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161011/adf18005/attachment.html>
More information about the vc
mailing list