Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcompat/4.1 Cast to unsigned short to avoid loss of pr...
details: https://anonhg.NetBSD.org/src/rev/c4027b26fb23
branches: trunk
changeset: 472676:c4027b26fb23
user: christos <christos%NetBSD.org@localhost>
date: Tue May 04 17:08:32 1999 +0000
description:
Cast to unsigned short to avoid loss of precision message.
diffstat:
lib/libcompat/4.1/ftime.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 5d73d82e2434 -r c4027b26fb23 lib/libcompat/4.1/ftime.c
--- a/lib/libcompat/4.1/ftime.c Tue May 04 16:16:54 1999 +0000
+++ b/lib/libcompat/4.1/ftime.c Tue May 04 17:08:32 1999 +0000
@@ -30,7 +30,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ftime.c,v 1.5 1997/10/09 10:20:10 lukem Exp $");
+__RCSID("$NetBSD: ftime.c,v 1.6 1999/05/04 17:08:32 christos Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -46,7 +46,7 @@
if (gettimeofday(&t, &tz) < 0)
return (-1);
- tbp->millitm = t.tv_usec / 1000;
+ tbp->millitm = (unsigned short)(t.tv_usec / 1000);
tbp->time = t.tv_sec;
tbp->timezone = tz.tz_minuteswest;
tbp->dstflag = tz.tz_dsttime;
Home |
Main Index |
Thread Index |
Old Index