Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/time another lint warning for compat.



details:   https://anonhg.NetBSD.org/src/rev/4466173573d3
branches:  trunk
changeset: 341291:4466173573d3
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 29 19:18:32 2015 +0000

description:
another lint warning for compat.

diffstat:

 lib/libc/time/localtime.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f70c3be0c24a -r 4466173573d3 lib/libc/time/localtime.c
--- a/lib/libc/time/localtime.c Thu Oct 29 19:18:19 2015 +0000
+++ b/lib/libc/time/localtime.c Thu Oct 29 19:18:32 2015 +0000
@@ -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 @@
                              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++;
                              }



Home | Main Index | Thread Index | Old Index