Module Name: src Committed By: christos Date: Thu Oct 29 19:18:32 UTC 2015
Modified Files: src/lib/libc/time: localtime.c Log Message: another lint warning for compat. To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 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.99 src/lib/libc/time/localtime.c:1.100 --- src/lib/libc/time/localtime.c:1.99 Thu Oct 29 13:49:24 2015 +++ src/lib/libc/time/localtime.c Thu Oct 29 15:18:32 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: localtime.c,v 1.99 2015/10/29 17:49:24 christos Exp $ */ +/* $NetBSD: localtime.c,v 1.100 2015/10/29 19:18:32 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.99 2015/10/29 17:49:24 christos Exp $"); +__RCSID("$NetBSD: localtime.c,v 1.100 2015/10/29 19:18:32 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -639,7 +639,7 @@ tzloadbody(char const *name, struct stat size_t tsabbrlen = strlen(tsabbr); if (j + tsabbrlen < TZ_MAX_CHARS) { strcpy(sp->chars + j, tsabbr); - charcnt = j + tsabbrlen + 1; + charcnt = (int_fast32_t)(j + tsabbrlen + 1); ts->ttis[i].tt_abbrind = j; gotabbr++; }