diff options
Diffstat (limited to 'usr.sbin/ntpd/util.c')
-rw-r--r-- | usr.sbin/ntpd/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/util.c b/usr.sbin/ntpd/util.c index ba44545aae8..e218aea573a 100644 --- a/usr.sbin/ntpd/util.c +++ b/usr.sbin/ntpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.4 2004/07/05 19:53:21 otto Exp $ */ +/* $OpenBSD: util.c,v 1.5 2004/07/07 07:16:16 alexander Exp $ */ /* * Copyright (c) 2004 Alexander Guy <alexander.guy@andern.org> @@ -58,7 +58,7 @@ d_to_lfp(double d) struct l_fixedpt lfp; lfp.int_part = htonl(d); - lfp.fraction = htonl((d - lfp.int_part) * UINT_MAX); + lfp.fraction = htonl((d - (u_int32_t)d) * UINT_MAX); return (lfp); } |