signed/unsigned comparison warning

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-09-18 14:23:05 +00:00
parent 3f97d339d6
commit 0586024f65

View File

@@ -471,7 +471,7 @@ bool wxSound::Create(const wxString& fileName, bool isResource)
size_t len = wx_truncate_cast(size_t, lenOrig);
wxUint8 *data = new wxUint8[len];
if (fileWave.Read(data, len) != len)
if ( fileWave.Read(data, len) != lenOrig )
{
wxLogError(_("Couldn't load sound data from '%s'."), fileName.c_str());
return false;