From 4f7402db01d37e4f7e46c85e1fb8130ece88697c Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 12 Sep 2005 02:08:13 +0000 Subject: [PATCH] (mtext__uppercase): Add proper open/close parens. (mtext_titlecase): Add proper casting. --- src/mtext.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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. -- 1.7.10.4