diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-09-09 12:47:08 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-09-09 12:59:48 -0700 |
| commit | 6d7720f0a7f24a9d0accc322f382cd4b2d1f4f47 (patch) | |
| tree | 22c635c0437cab4b30c12721655c0691c8832e80 /src | |
| parent | a379dbe4dea2206ed5620be422d7ffe2322f892e (diff) | |
| download | nng-6d7720f0a7f24a9d0accc322f382cd4b2d1f4f47.tar.gz nng-6d7720f0a7f24a9d0accc322f382cd4b2d1f4f47.tar.bz2 nng-6d7720f0a7f24a9d0accc322f382cd4b2d1f4f47.zip | |
fixes #713 stats warnings from Windows
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
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'; |
