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:
parent
f4af243e5c
commit
ddf3604545
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue