* evas_object_textblock: Add some cast to reduce warning noise.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 22 Dec 2009 12:09:36 +0000 (12:09 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 22 Dec 2009 12:09:36 +0000 (12:09 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@44648 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 10148aa..71a701f 100644 (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;
                }
           }