Fix unsigned/signed int comparison warning 83/38883/1
authorKingsley Stephens <k.stephens@samsung.com>
Wed, 29 Apr 2015 15:53:56 +0000 (16:53 +0100)
committerKingsley Stephens <k.stephens@samsung.com>
Wed, 29 Apr 2015 15:53:56 +0000 (16:53 +0100)
Change-Id: I1ba59f93c7f842fad0a8a2a9b480e813be2c339a

dali-toolkit/internal/text/text-controller.cpp

index a26f5f5..95102d9 100644 (file)
@@ -313,7 +313,7 @@ bool Controller::RemoveText( int cursorOffset, int numberOfChars )
     CharacterIndex cursorIndex = oldCursorIndex;
 
     // Validate the cursor position & number of characters
-    if( std::abs( cursorOffset ) <= cursorIndex )
+    if( static_cast< CharacterIndex >( std::abs( cursorOffset ) ) <= cursorIndex )
     {
       cursorIndex = oldCursorIndex + cursorOffset;
     }