diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2015-01-05 15:17:14 +0100 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2015-01-06 23:46:06 +0100 |
commit | 18b60d85126ff29aa2bced1d213452a103a313e6 (patch) | |
tree | 2c995bedf6184fee516f9fae6234721bb9e4df10 /Src | |
parent | c9353814799ae399ccddaf0d48d224ce9cd52b67 (diff) | |
download | zsh-18b60d85126ff29aa2bced1d213452a103a313e6.tar.gz zsh-18b60d85126ff29aa2bced1d213452a103a313e6.tar.xz zsh-18b60d85126ff29aa2bced1d213452a103a313e6.zip |
34117: zle: size_t is unsigned, use int instead
The function wctomb returns an int according to my manpage, and we furthermore check if it is negative, and then return it, and the function signature is int, so declaring it as an int seems to make more sense.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index e361e5e2a..e4ab97a54 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -117,7 +117,7 @@ int zlecharasstring(ZLE_CHAR_T inchar, char *buf) { #ifdef MULTIBYTE_SUPPORT - size_t ret; + int ret; char *ptr; #ifdef __STDC_ISO_10646__ |