aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-06-23 23:22:45 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-12-31 22:19:18 +0200
commit5c4fb60e8df026e933afab0cfe0a8b55be20036c (patch)
treee6236933854a0f1ed42ea124ef6ec1fe894d1c35
parentxz: Fix some of the warnings from -Wsign-conversion. (diff)
downloadxz-5c4fb60e8df026e933afab0cfe0a8b55be20036c.tar.xz
tuklib_mbstr_width: Fix a warning from -Wsign-conversion.
Diffstat (limited to '')
-rw-r--r--src/common/tuklib_mbstr_width.c2
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.