diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-23 23:22:45 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-23 23:22:45 +0300 |
commit | d0a78751eb54fb1572002746c533936a118e4e42 (patch) | |
tree | 939b56ed8699ca5c9bca1fa3450b85f93b09a4dd /src | |
parent | xz: Fix some of the warnings from -Wsign-conversion. (diff) | |
download | xz-d0a78751eb54fb1572002746c533936a118e4e42.tar.xz |
tuklib_mbstr_width: Fix a warning from -Wsign-conversion.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/tuklib_mbstr_width.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tuklib_mbstr_width.c b/src/common/tuklib_mbstr_width.c index 3c38990f..4bbe9647 100644 --- a/src/common/tuklib_mbstr_width.c +++ b/src/common/tuklib_mbstr_width.c @@ -50,7 +50,7 @@ tuklib_mbstr_width(const char *str, size_t *bytes) if (wc_width < 0) return (size_t)-1; - width += wc_width; + width += (size_t)wc_width; } // Require that the string ends in the initial shift state. |