From d0a78751eb54fb1572002746c533936a118e4e42 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 23 Jun 2019 23:22:45 +0300 Subject: [PATCH] tuklib_mbstr_width: Fix a warning from -Wsign-conversion. --- src/common/tuklib_mbstr_width.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.