From 6d7720f0a7f24a9d0accc322f382cd4b2d1f4f47 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 9 Sep 2018 12:47:08 -0700 Subject: fixes #713 stats warnings from Windows --- src/core/stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/stats.c b/src/core/stats.c index 0363a932..832bb1da 100644 --- a/src/core/stats.c +++ b/src/core/stats.c @@ -439,7 +439,7 @@ stat_sprint_scope(nni_stat *stat, char **scope, int *lenp) } else { (*scope)[0] = '\0'; } - *lenp -= strlen(*scope); + *lenp -= (int) strlen(*scope); *scope += strlen(*scope); } #endif @@ -461,7 +461,7 @@ nng_stats_dump(nng_stat *stat) scope = buf; len = sizeof(buf); stat_sprint_scope(stat, &scope, &len); - len = strlen(buf); + len = (int) strlen(buf); if (len > 0) { if (buf[len - 1] == '.') { buf[--len] = '\0'; -- cgit v1.2.3-70-g09d2