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 | |
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.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Src/Zle/zle_utils.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index b163935b6..384a85208 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2015-01-06 Mikael Magnusson <mikachu@gmail.com> + * 34117: Src/Zle/zle_utils.c: size_t is unsigned, use int instead + * 34116: Src/Zle/computil.c: Check for NULL before passing to strlen 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__ |