Compile fix for VC++ 5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
41faf80727
commit
6565d564cb
@ -971,14 +971,16 @@ void MBConvTestCase::TestEncoder(
|
|||||||
// make sure the characters generated are correct
|
// make sure the characters generated are correct
|
||||||
CPPUNIT_ASSERT( 0 == memcmp( outputBuffer, multiBuffer, multiBytes ) );
|
CPPUNIT_ASSERT( 0 == memcmp( outputBuffer, multiBuffer, multiBytes ) );
|
||||||
|
|
||||||
|
size_t i;
|
||||||
|
|
||||||
// the output buffer should be null terminated
|
// the output buffer should be null terminated
|
||||||
for ( size_t i = multiBytes; i < multiBytes + sizeofNull; i++ )
|
for ( i = multiBytes; i < multiBytes + sizeofNull; i++ )
|
||||||
{
|
{
|
||||||
CPPUNIT_ASSERT( ((unsigned char*)outputBuffer.data())[i] == 0 );
|
CPPUNIT_ASSERT( ((unsigned char*)outputBuffer.data())[i] == 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure the rest of the output buffer is untouched
|
// make sure the rest of the output buffer is untouched
|
||||||
for ( size_t i = multiBytes + sizeofNull; i < outputBufferSize; i++ )
|
for ( i = multiBytes + sizeofNull; i < outputBufferSize; i++ )
|
||||||
{
|
{
|
||||||
CPPUNIT_ASSERT( ((unsigned char*)outputBuffer.data())[i] == UNINITIALIZED );
|
CPPUNIT_ASSERT( ((unsigned char*)outputBuffer.data())[i] == UNINITIALIZED );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user