From 727098a446af5dce627dadbaa2b192b35e9b7539 Mon Sep 17 00:00:00 2001 From: henning <> Date: Wed, 7 Jul 2004 07:38:21 +0000 Subject: [PATCH] help the compiler a bit with a cast, spotted by theo --- src/usr.sbin/ntpd/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/util.c b/src/usr.sbin/ntpd/util.c index 090e8075..f1180f14 100644 --- a/src/usr.sbin/ntpd/util.c +++ b/src/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 @@ -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);