diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-07 07:38:22 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-07 07:38:22 +0000 |
commit | 2d2b63fe936f4aa749ae6d784356ce73c1dd802f (patch) | |
tree | 91027cc79331fe951592b0f6173ad33036129071 | |
parent | c16a4d2c6cb2784ebd9d8b09a147f1c1998e857b (diff) |
help the compiler a bit with a cast, spotted by theo
-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 090e8075a1c..f1180f14363 100644 --- a/usr.sbin/ntpd/util.c +++ b/usr.sbin/ntpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.6 2004/07/07 07:32:05 alexander Exp $ */ +/* $OpenBSD: util.c,v 1.7 2004/07/07 07:38:21 henning Exp $ */ /* * Copyright (c) 2004 Alexander Guy <alexander.guy@andern.org> @@ -57,7 +57,7 @@ d_to_lfp(double d) { struct l_fixedpt lfp; - lfp.int_part = htonl(d); + lfp.int_part = htonl((u_int32_t)d); lfp.fraction = htonl((u_int32_t)((d - (u_int32_t)d) * UINT_MAX)); return (lfp); |