Module Name:    src
Committed By:   christos
Date:           Sun Oct 28 19:02:30 UTC 2012

Modified Files:
        src/lib/libc/time: localtime.c

Log Message:
add a cast to appease the compat build.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/time/localtime.c
diff -u src/lib/libc/time/localtime.c:1.71 src/lib/libc/time/localtime.c:1.72
--- src/lib/libc/time/localtime.c:1.71	Sun Oct 28 13:11:33 2012
+++ src/lib/libc/time/localtime.c	Sun Oct 28 15:02:29 2012
@@ -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 @@ detzcode64(const char *const codep)
 	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;

Reply via email to