new set of fixes for problems due to huge files support: drop wxFileSize_t, use wxFileOffset only, make wxInvalidOffset an int (main part of the patch 1063498)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -575,12 +575,12 @@ static void TestFileRead()
|
||||
|
||||
wxPuts(_T("File dump:\n----------"));
|
||||
|
||||
static const off_t len = 1024;
|
||||
static const size_t len = 1024;
|
||||
wxChar buf[len];
|
||||
for ( ;; )
|
||||
{
|
||||
off_t nRead = file.Read(buf, len);
|
||||
if ( nRead == wxInvalidOffset )
|
||||
size_t nRead = file.Read(buf, len);
|
||||
if ( nRead == (size_t)wxInvalidOffset )
|
||||
{
|
||||
wxPrintf(_T("Failed to read the file."));
|
||||
break;
|
||||
|
Reference in New Issue
Block a user