From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14419 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Issam Maghni Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 1/5] fix warning dangling-else Date: Mon, 22 Jul 2019 14:07:36 -0400 Message-ID: <20190722180740.16951-1-me@concati.me> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="147821"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Issam Maghni To: musl@lists.openwall.com Original-X-From: musl-return-14435-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 22 20:11:25 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hpcmS-000cLJ-In for gllmg-musl@m.gmane.org; Mon, 22 Jul 2019 20:11:24 +0200 Original-Received: (qmail 22322 invoked by uid 550); 22 Jul 2019 18:11:22 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 18385 invoked from network); 22 Jul 2019 18:07:35 -0000 X-Originating-IP: 87.101.92.157 X-Mailer: git-send-email 2.22.0 Xref: news.gmane.org gmane.linux.lib.musl.general:14419 Archived-At: Signed-off-by: Issam Maghni --- src/ctype/towctrans.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ctype/towctrans.c b/src/ctype/towctrans.c index 8f681018..bd0136dd 100644 --- a/src/ctype/towctrans.c +++ b/src/ctype/towctrans.c @@ -259,12 +259,14 @@ static wchar_t __towcase(wchar_t wc, int lower) || (unsigned)wc - 0xabc0 <= 0xfeff-0xabc0) return wc; /* special case because the diff between upper/lower is too big */ - if (lower && (unsigned)wc - 0x10a0 < 0x2e) + if (lower && (unsigned)wc - 0x10a0 < 0x2e) { if (wc>0x10c5 && wc != 0x10c7 && wc != 0x10cd) return wc; else return wc + 0x2d00 - 0x10a0; - if (!lower && (unsigned)wc - 0x2d00 < 0x26) + } + if (!lower && (unsigned)wc - 0x2d00 < 0x26) { if (wc>0x2d25 && wc != 0x2d27 && wc != 0x2d2d) return wc; else return wc + 0x10a0 - 0x2d00; + } if (lower && (unsigned)wc - 0x13a0 < 0x50) return wc + 0xab70 - 0x13a0; if (!lower && (unsigned)wc - 0xab70 < 0x50) -- 2.22.0