Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/libntp Add explicit casts
details: https://anonhg.NetBSD.org/src/rev/20897cb24d8e
branches: trunk
changeset: 933729:20897cb24d8e
user: christos <christos%NetBSD.org@localhost>
date: Fri May 29 20:15:14 2020 +0000
description:
Add explicit casts
diffstat:
external/bsd/ntp/dist/libntp/timexsup.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r e4a893a9be44 -r 20897cb24d8e external/bsd/ntp/dist/libntp/timexsup.c
--- a/external/bsd/ntp/dist/libntp/timexsup.c Fri May 29 12:30:38 2020 +0000
+++ b/external/bsd/ntp/dist/libntp/timexsup.c Fri May 29 20:15:14 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: timexsup.c,v 1.2 2020/05/25 20:47:24 christos Exp $ */
+/* $NetBSD: timexsup.c,v 1.3 2020/05/29 20:15:14 christos Exp $ */
/*
* timexsup.c - 'struct timex' support functions
@@ -30,9 +30,9 @@
dval = floor(dval + 0.5);
/* clamp / saturate */
- if (dval >= LONG_MAX)
+ if (dval >= (double)LONG_MAX)
return LONG_MAX;
- if (dval <= LONG_MIN)
+ if (dval <= (double)LONG_MIN)
return LONG_MIN;
return (long)dval;
Home |
Main Index |
Thread Index |
Old Index