Source-Changes-HG archive

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

[src/trunk]: src/sys/sys make constants unsigned (joerg@)



details:   https://anonhg.NetBSD.org/src/rev/f4121a980d94
branches:  trunk
changeset: 798065:f4121a980d94
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Aug 08 07:40:35 2014 +0000

description:
make constants unsigned (joerg@)

diffstat:

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

diffs (27 lines):

diff -r c56596c8880d -r f4121a980d94 sys/sys/time.h
--- a/sys/sys/time.h    Fri Aug 08 07:34:02 2014 +0000
+++ b/sys/sys/time.h    Fri Aug 08 07:40:35 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: time.h,v 1.66 2014/08/07 20:05:10 christos Exp $       */
+/*     $NetBSD: time.h,v 1.67 2014/08/08 07:40:35 christos Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -174,7 +174,7 @@
 
        bt->sec = ts->tv_sec;
        /* 18446744073 = int(2^64 / 1000000000) */
-       bt->frac = (uint64_t)ts->tv_nsec * (uint64_t)18446744073LL; 
+       bt->frac = (uint64_t)ts->tv_nsec * (uint64_t)18446744073ULL; 
 }
 
 static __inline void
@@ -192,7 +192,7 @@
 
        bt->sec = tv->tv_sec;
        /* 18446744073709 = int(2^64 / 1000000) */
-       bt->frac = (uint64_t)tv->tv_usec * (uint64_t)18446744073709LL;
+       bt->frac = (uint64_t)tv->tv_usec * (uint64_t)18446744073709ULL;
 }
 #endif /* !defined(_STANDALONE) */
 



Home | Main Index | Thread Index | Old Index