Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: fusl/src/ctype/towctrans.c

Issue 1581513002: Fix dangling-else warnings in fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/ctype/towctrans.c
diff --git a/fusl/src/ctype/towctrans.c b/fusl/src/ctype/towctrans.c
index 6af618758bcb853096fa74b8a54d820cd1626ec2..8f9b1d66dd29ff90fb794e91c1f008e72a9d2900 100644
--- a/fusl/src/ctype/towctrans.c
+++ b/fusl/src/ctype/towctrans.c
@@ -232,12 +232,14 @@ static wchar_t __towcase(wchar_t wc, int lower)
|| (unsigned)wc - 0xa800 <= 0xfeff-0xa800)
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;
+ }
viettrungluu 2016/01/12 16:47:50 "Should" this be a hard tab? (Or is this just a ri
for (i=0; casemaps[i].len; i++) {
int base = casemaps[i].upper + (lmask & casemaps[i].lower);
if ((unsigned)wc-base < casemaps[i].len) {
« no previous file with comments | « fusl/BUILD.gn ('k') | fusl/src/network/dn_skipname.c » ('j') | fusl/src/network/dn_skipname.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698