From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 137 invoked by alias); 6 Jan 2015 05:55:52 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34117 Received: (qmail 14673 invoked from network); 6 Jan 2015 05:55:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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== X-Received: by 10.194.237.101 with SMTP id vb5mr187293459wjc.30.1420521970180; Mon, 05 Jan 2015 21:26:10 -0800 (PST) From: Mikael Magnusson To: zsh-workers@zsh.org Subject: PATCH 04/17: zle: size_t is unsigned, use int instead Date: Tue, 6 Jan 2015 06:25:36 +0100 Message-Id: <1420521949-30483-5-git-send-email-mikachu@gmail.com> X-Mailer: git-send-email 2.2.0.GIT In-Reply-To: <1420521949-30483-1-git-send-email-mikachu@gmail.com> 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