1
0

Fixed clang warnings in cGZipFile.

This commit is contained in:
madmaxoft 2014-04-01 15:00:30 +02:00
parent 42e30b6513
commit b9a090d835

View File

@ -78,7 +78,7 @@ int cGZipFile::ReadRestOfFile(AString & a_Contents)
while ((NumBytesRead = gzread(m_File, Buffer, sizeof(Buffer))) > 0)
{
TotalBytes += NumBytesRead;
a_Contents.append(Buffer, NumBytesRead);
a_Contents.append(Buffer, (size_t)NumBytesRead);
}
// NumBytesRead is < 0 on error
return (NumBytesRead >= 0) ? TotalBytes : NumBytesRead;
@ -102,7 +102,7 @@ bool cGZipFile::Write(const char * a_Contents, int a_Size)
return false;
}
return (gzwrite(m_File, a_Contents, a_Size) != 0);
return (gzwrite(m_File, a_Contents, (unsigned int)a_Size) != 0);
}