/WX enabled for MSVC in CMake too.
[blender.git] / source / blender / blenkernel / intern / text.c
index bb1a1a88a094d0d8a88b7228f37a3dd186880c32..cb3c0c08cc0b8b6b189271118c02fa56054fdcf6 100644 (file)
@@ -991,8 +991,8 @@ void txt_move_to (Text *text, unsigned int line, unsigned int ch, short sel)
                if ((*linep)->next) *linep= (*linep)->next;
                else break;
        }
                if ((*linep)->next) *linep= (*linep)->next;
                else break;
        }
-       if (ch>(*linep)->len)
-               ch= (*linep)->len;
+       if (ch>(unsigned int)((*linep)->len))
+               ch= (unsigned int)((*linep)->len);
        *charp= ch;
        
        if(!sel) txt_pop_sel(text);
        *charp= ch;
        
        if(!sel) txt_pop_sel(text);