From: handa Date: Mon, 12 Sep 2005 02:08:13 +0000 (+0000) Subject: (mtext__uppercase): Add proper open/close parens. X-Git-Tag: REL-1-3-0~172 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=4f7402db01d37e4f7e46c85e1fb8130ece88697c;p=m17n%2Fm17n-lib.git (mtext__uppercase): Add proper open/close parens. (mtext_titlecase): Add proper casting. --- diff --git a/src/mtext.c b/src/mtext.c index ce87b1a..6340339 100644 --- a/src/mtext.c +++ b/src/mtext.c @@ -1532,7 +1532,7 @@ mtext__uppercase (MText *mt, int pos, int end) else { - if (pl = (MPlist *) mchartable_lookup (case_mapping, c)) + if ((pl = (MPlist *) mchartable_lookup (case_mapping, c)) != NULL) { MText *upper; int ulen; @@ -3502,8 +3502,9 @@ mtext_titlecase (MText *mt) /* Go through following combining characters. */ for (to = from + 1; - to < len && - mchartable_lookup (combining_class, mtext_ref_char (mt, to)) > 0; + (to < len + && ((int) mchartable_lookup (combining_class, mtext_ref_char (mt, to)) + > 0)); to++); /* Titlecase the region and prepare for next lowercase operation.