Compilation fix for platforms where size_t is larger than long
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -376,8 +376,11 @@ void zlibStream::doTestStreamData(int input_flag, int output_flag, int compress_
|
|||||||
// Check state of the verify action.
|
// Check state of the verify action.
|
||||||
if (fail_pos != DATABUFFER_SIZE || !bWasEOF)
|
if (fail_pos != DATABUFFER_SIZE || !bWasEOF)
|
||||||
{
|
{
|
||||||
wxString msg(wxString::Format(_T("Wrong data item at pos %d (Org_val %d != Zlib_val %d), with compression level %d"),
|
wxString msg;
|
||||||
fail_pos, GetDataBuffer()[fail_pos], last_value, compress_level));
|
msg << _T("Wrong data item at pos ") << fail_pos
|
||||||
|
<< _T(" (Org_val ") << GetDataBuffer()[fail_pos]
|
||||||
|
<< _T(" != Zlib_val ") << last_value
|
||||||
|
<< _T("), with compression level ") << compress_level;
|
||||||
CPPUNIT_FAIL(string(msg.mb_str()));
|
CPPUNIT_FAIL(string(msg.mb_str()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user