Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/time add a cast to appease the compat build.
details: https://anonhg.NetBSD.org/src/rev/329fac0e8b6c
branches: trunk
changeset: 782331:329fac0e8b6c
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 28 19:02:29 2012 +0000
description:
add a cast to appease the compat build.
diffstat:
lib/libc/time/localtime.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c3f247b0c15b -r 329fac0e8b6c lib/libc/time/localtime.c
--- a/lib/libc/time/localtime.c Sun Oct 28 17:13:59 2012 +0000
+++ b/lib/libc/time/localtime.c Sun Oct 28 19:02:29 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: localtime.c,v 1.71 2012/10/28 17:11:33 christos Exp $ */
+/* $NetBSD: localtime.c,v 1.72 2012/10/28 19:02:29 christos Exp $ */
/*
** This file is in the public domain, so clarified as of
@@ -10,7 +10,7 @@
#if 0
static char elsieid[] = "@(#)localtime.c 8.17";
#else
-__RCSID("$NetBSD: localtime.c,v 1.71 2012/10/28 17:11:33 christos Exp $");
+__RCSID("$NetBSD: localtime.c,v 1.72 2012/10/28 19:02:29 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -268,7 +268,7 @@
time_t result;
int i;
- result = (codep[0] & 0x80) ? (~(int_fast64_t) 0) : 0;
+ result = (time_t)((codep[0] & 0x80) ? (~(int_fast64_t) 0) : 0);
for (i = 0; i < 8; ++i)
result = result * 256 + (codep[i] & 0xff);
return result;
Home |
Main Index |
Thread Index |
Old Index