Fix harmless warning in Base64 unit test
Avoid warning C4245: 'initializing': conversion from 'int' to 'std::size_t', signed/unsigned mismatch from MSVC with an explicit cast.
This commit is contained in:
@@ -291,7 +291,7 @@ void Base64TestCase::DecodeInvalid()
|
||||
CPPUNIT_ASSERT_EQUAL( wxCONV_FAILED, rc);
|
||||
CPPUNIT_ASSERT_EQUAL( 0, posErr );
|
||||
|
||||
const size_t POS_INVALID = -1;
|
||||
const size_t POS_INVALID = (size_t)-1;
|
||||
posErr = POS_INVALID;
|
||||
rc = wxBase64Decode(NULL, 0, " QQ==", wxNO_LEN,
|
||||
wxBase64DecodeMode_SkipWS, &posErr);
|
||||
|
Reference in New Issue
Block a user