mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
tuklib_mbstr_width: Fix a warning from -Wsign-conversion.
This commit is contained in:
parent
37df03ce52
commit
5c4fb60e8d
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ tuklib_mbstr_width(const char *str, size_t *bytes)
|
||||||
if (wc_width < 0)
|
if (wc_width < 0)
|
||||||
return (size_t)-1;
|
return (size_t)-1;
|
||||||
|
|
||||||
width += wc_width;
|
width += (size_t)wc_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Require that the string ends in the initial shift state.
|
// Require that the string ends in the initial shift state.
|
||||||
|
|
Loading…
Reference in a new issue