Module Name:    src
Committed By:   christos
Date:           Fri Aug  8 07:40:35 UTC 2014

Modified Files:
        src/sys/sys: time.h

Log Message:
make constants unsigned (joerg@)


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 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.66 src/sys/sys/time.h:1.67
--- src/sys/sys/time.h:1.66	Thu Aug  7 16:05:10 2014
+++ src/sys/sys/time.h	Fri Aug  8 03:40:35 2014
@@ -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 @@ timespec2bintime(const struct timespec *
 
 	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 @@ timeval2bintime(const struct timeval *tv
 
 	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) */
 

Reply via email to