Fix world breakage (compiling libstdc++):

sys/time.h:137: integer constant out of range
sys/time.h:137: warning: decimal integer constant is so large that it is unsigned
sys/time.h:153: integer constant out of range
sys/time.h:153: warning: decimal integer constant is so large that it is unsigned
This commit is contained in:
peter 2002-02-08 03:55:37 +00:00
parent 67d2168b44
commit bfa45f9454

View File

@ -134,7 +134,7 @@ timespec2bintime(struct timespec *ts, struct bintime *bt)
{
bt->sec = ts->tv_sec;
bt->frac = ts->tv_nsec * 18446744073; /* int(2^64 / 1000000000) */
bt->frac = ts->tv_nsec * 18446744073ULL; /* int(2^64 / 1000000000) */
}
static __inline void
@ -150,7 +150,7 @@ timeval2bintime(struct timeval *tv, struct bintime *bt)
{
bt->sec = tv->tv_sec;
bt->frac = tv->tv_usec * 18446744073709; /* int(2^64 / 1000000) */
bt->frac = tv->tv_usec * 18446744073709ULL; /* int(2^64 / 1000000) */
}
/* end of struct bintime stuff */