summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/dolfptoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/libntp/dolfptoa.c')
-rw-r--r--contrib/ntp/libntp/dolfptoa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/ntp/libntp/dolfptoa.c b/contrib/ntp/libntp/dolfptoa.c
index 5602331..7c92a30 100644
--- a/contrib/ntp/libntp/dolfptoa.c
+++ b/contrib/ntp/libntp/dolfptoa.c
@@ -13,7 +13,7 @@ dolfptoa(
u_long fpi,
u_long fpv,
int neg,
- int ndec,
+ short ndec,
int msec
)
{
@@ -59,8 +59,8 @@ dolfptoa(
do {
stmp = swork;
- swork /= sten;
- stmp -= (swork<<3) + (swork<<1);
+ swork = (u_short) (swork/sten);
+ stmp = (u_short)(stmp - ((swork<<3) + (swork<<1)));
*--cp = (u_char)stmp;
} while (swork != 0);
}
OpenPOWER on IntegriCloud