Module Name:    src
Committed By:   christos
Date:           Fri Dec 13 10:34:47 UTC 2013

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

Log Message:
add a cast for sparc64 where int_fast32_t is long (should it be?), and
time_t is int32_t (for compat)


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 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.78 src/lib/libc/time/localtime.c:1.79
--- src/lib/libc/time/localtime.c:1.78	Fri Sep 20 15:06:54 2013
+++ src/lib/libc/time/localtime.c	Fri Dec 13 05:34:47 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: localtime.c,v 1.78 2013/09/20 19:06:54 christos Exp $	*/
+/*	$NetBSD: localtime.c,v 1.79 2013/12/13 10:34:47 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.78 2013/09/20 19:06:54 christos Exp $");
+__RCSID("$NetBSD: localtime.c,v 1.79 2013/12/13 10:34:47 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -1108,7 +1108,7 @@ tzparse(timezone_t sp, const char *name,
 				}
 				if (time_t_max - janfirst < yearsecs)
 					break;
-				janfirst += yearsecs;
+				janfirst += (time_t)yearsecs;
 			}
 			_DIAGASSERT(__type_fit(int, atp - sp->ats));
 			sp->timecnt = (int)(atp - sp->ats);

Reply via email to