Module Name: src
Committed By: christos
Date: Thu Aug 7 20:05:10 UTC 2014
Modified Files:
src/sys/sys: time.h
Log Message:
convert to unsigned multiplication.
To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/sys/time.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/time.h
diff -u src/sys/sys/time.h:1.65 src/sys/sys/time.h:1.66
--- src/sys/sys/time.h:1.65 Thu Oct 27 12:12:52 2011
+++ src/sys/sys/time.h Thu Aug 7 16:05:10 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: time.h,v 1.65 2011/10/27 16:12:52 christos Exp $ */
+/* $NetBSD: time.h,v 1.66 2014/08/07 20:05:10 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -174,7 +174,7 @@ timespec2bintime(const struct timespec *
bt->sec = ts->tv_sec;
/* 18446744073 = int(2^64 / 1000000000) */
- bt->frac = ts->tv_nsec * (uint64_t)18446744073LL;
+ bt->frac = (uint64_t)ts->tv_nsec * (uint64_t)18446744073LL;
}
static __inline void
@@ -192,7 +192,7 @@ timeval2bintime(const struct timeval *tv
bt->sec = tv->tv_sec;
/* 18446744073709 = int(2^64 / 1000000) */
- bt->frac = tv->tv_usec * (uint64_t)18446744073709LL;
+ bt->frac = (uint64_t)tv->tv_usec * (uint64_t)18446744073709LL;
}
#endif /* !defined(_STANDALONE) */