Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_text.c Log Message: - fix warnings =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v retrieving revision 1.110 retrieving revision 1.111 diff -u -3 -r1.110 -r1.111 --- ewl_text.c 10 Jul 2006 02:57:08 -0000 1.110 +++ ewl_text.c 11 Jul 2006 20:48:02 -0000 1.111 @@ -471,8 +471,6 @@ /* Limit the index to be within safe boundaries */ if (idx > t->length + 1) idx = t->length + 1; - if (idx < 0) - idx = 0; /* setup the cursor position to begin with. If this is the same * position as before nothing will change (we'll keep our current @@ -485,7 +483,7 @@ } else { - int newlen; + unsigned int newlen; newlen = t->length + len; if ((newlen + 1) >= t->total_size) @@ -2197,7 +2195,7 @@ ewl_text_utf_char_position_next(const char *text, unsigned int pos) { const unsigned char *t; - int len; + unsigned int len; DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR_RET("text", text, 0); @@ -2225,7 +2223,7 @@ ewl_text_utf_char_position_prev(const char *text, unsigned int pos) { const unsigned char *t; - int len; + unsigned int len; DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR_RET("text", text, 0); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs