aboutsummaryrefslogtreecommitdiff
path: root/src/unstable
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unstable/utfstring.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/unstable/utfstring.cpp b/src/unstable/utfstring.cpp
index ea91523..21b3f82 100644
--- a/src/unstable/utfstring.cpp
+++ b/src/unstable/utfstring.cpp
@@ -644,11 +644,14 @@ bool Bu::UtfString::operator==( const Bu::String &rhs ) const
644bool Bu::UtfString::operator==( const char *rhs ) const 644bool Bu::UtfString::operator==( const char *rhs ) const
645{ 645{
646 // Nieve comparison 646 // Nieve comparison
647 for( int j = 0; j < aData.getSize(); j++ ) 647 int j;
648 for( j = 0; j < aData.getSize(); j++ )
648 { 649 {
649 if( rhs[j] == '\0' || aData[j] != rhs[j] ) 650 if( rhs[j] == '\0' || aData[j] != rhs[j] )
650 return false; 651 return false;
651 } 652 }
653 if( rhs[j] != '\0' )
654 return false;
652 655
653 return true; 656 return true;
654} 657}