Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH 04/17: zle: size_t is unsigned, use int instead
- X-seq: zsh-workers 34117
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH 04/17: zle: size_t is unsigned, use int instead
- Date: Tue, 6 Jan 2015 06:25:36 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=DQOtKf0wthfLtru1/n7cOn9lmf5xuwk8YbZz9/BPRfs=; b=pH693vHzNGMuwKLWylaMBh1OH3WBLh4zjdaOShor2ZyLYJfbRP7eDafXy6/U4+x4/S jpZsKWGkivkkYHwYybphV5ICK6GAZ0YOgiV1NnmeEFeZ504N1HvfbHpBhAvWiCHdr7Nc +S0fI+ecI23TrWk9U4/QKAPhGDuVXipvtMt5RW1ujv0UBr5an3z2/5OAs0UPWK5Hb7kD hI5P23WsqfExl7kOcHqf4w6n1PxfB41HdVx+Ul2XpfqV0Sh44bJ+HcpERx17iHiKwTPj vkw6c6d6+l21PROcuBdH/XbJLcHlo4SJthaPJn5Jklx0Pi6pW3h6AMInDqKED7ic4LH4 NIpg==
- In-reply-to: <1420521949-30483-1-git-send-email-mikachu@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1420521949-30483-1-git-send-email-mikachu@gmail.com>
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.
---
Src/Zle/zle_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index e361e5e..e4ab97a 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__
--
2.2.0.GIT
Messages sorted by:
Reverse Date,
Date,
Thread,
Author