summaryrefslogtreecommitdiff
path: root/net/chrony/files/patch-util.c
blob: abee9f8bbfefbe3ddbb8b69ff3730a5e5b14689d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- util.c.orig	2017-01-31 10:22:11 UTC
+++ util.c
@@ -738,7 +738,7 @@ UTI_TimespecToNtp64(struct timespec *src
     hi = lo = 0;
   } else {
     hi = htonl(sec + JAN_1970);
-    lo = htonl(NSEC_PER_NTP64 * nsec);
+    lo = htonl((uint32_t)(NSEC_PER_NTP64 * nsec));
 
     /* Add the fuzz */
     if (fuzz) {