char *strBuf, *strPtr, *strEnd;
char ch, chLast = '\0';
char buf[1024];
- int n, nRead;
+ size_t nRead;
strPtr = strBuf = new char[1024];
strEnd = strBuf + 1024;
do
{
nRead = m_file.Read(buf, WXSIZEOF(buf));
- if ( nRead == wxInvalidOffset )
+ if ( nRead == (size_t)wxInvalidOffset )
{
// read error (error message already given in wxFile::Read)
delete[] strBuf;
return false;
}
- for (n = 0; n < nRead; n++)
+ for (size_t n = 0; n < nRead; n++)
{
ch = buf[n];
switch ( ch )