about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2015-01-05 15:17:14 +0100
committerMikael Magnusson <mikachu@gmail.com>2015-01-06 23:46:06 +0100
commit18b60d85126ff29aa2bced1d213452a103a313e6 (patch)
tree2c995bedf6184fee516f9fae6234721bb9e4df10 /Src
parentc9353814799ae399ccddaf0d48d224ce9cd52b67 (diff)
downloadzsh-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.c2
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__