Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys convert to unsigned multiplication.



details:   https://anonhg.NetBSD.org/src/rev/8b08f3260482
branches:  trunk
changeset: 331295:8b08f3260482
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Aug 07 20:05:10 2014 +0000

description:
convert to unsigned multiplication.

diffstat:

 sys/sys/time.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b852e813ab41 -r 8b08f3260482 sys/sys/time.h
--- a/sys/sys/time.h    Thu Aug 07 19:54:23 2014 +0000
+++ b/sys/sys/time.h    Thu Aug 07 20:05:10 2014 +0000
@@ -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 @@
 
        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 @@
 
        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) */
 



Home | Main Index | Thread Index | Old Index