* evas_object_textblock: Add some cast to reduce warning noise.

SVN revision: 44648
This commit is contained in:
Cedric BAIL 2009-12-22 12:09:36 +00:00
parent 83a91a9ab9
commit 1b80e16253
1 changed files with 3 additions and 3 deletions

View File

@ -1850,7 +1850,7 @@ _layout_text_append(Ctxt *c, Evas_Object_Textblock_Format *fmt, Evas_Object_Text
int i, len, chlen;
char *ptr;
len = evas_common_font_utf8_get_len(n->text);
len = evas_common_font_utf8_get_len((unsigned char*) n->text);
chlen = strlen(repch);
str = alloca((len * chlen) + 1);
tbase = str;
@ -2310,7 +2310,7 @@ _find_layout_item_line_match(Evas_Object *obj, Evas_Object_Textblock_Node *n, in
{
int pos2 = pos;
evas_common_font_utf8_get_prev(n->text, &pos2);
evas_common_font_utf8_get_prev((unsigned char *) n->text, &pos2);
if (pos2 < pos) pos = pos2;
}
EINA_INLIST_FOREACH(o->lines, ln)
@ -3365,7 +3365,7 @@ evas_textblock_cursor_char_prev(Evas_Textblock_Cursor *cur)
{
int plast;
plast = evas_common_font_utf8_get_last(it->text, strlen(it->text));
plast = evas_common_font_utf8_get_last((unsigned char *) it->text, strlen(it->text));
if ((index - it->source_pos) == plast) at_end_of_line = 1;
}
}