Fix boneheaded mistake: I left the return type of NS_ConvertUCS2toUTF8::Init().

git-svn-id: svn://10.0.0.236/trunk@70971 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2000-05-27 00:17:10 +00:00
parent 746896d6d8
commit 798592bacb
9 changed files with 21 additions and 6 deletions

View File

@@ -1863,6 +1863,7 @@ void nsCString::DebugDump(void) const {
//----------------------------------------------------------------------
void
NS_ConvertUCS2toUTF8::Init( const PRUnichar* aString, PRUint32 aLength )
{
// Caculate how many bytes we need
@@ -1882,7 +1883,7 @@ NS_ConvertUCS2toUTF8::Init( const PRUnichar* aString, PRUint32 aLength )
// Make sure our buffer's big enough, so we don't need to do
// multiple allocations.
if((utf8len+1) > sizeof(mBuffer))
if(PRUint32(utf8len+1) > sizeof(mBuffer))
SetCapacity(utf8len+1);
char* out = mStr;