diff options
-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. |