Fixed clang warnings in cGZipFile.
This commit is contained in:
parent
42e30b6513
commit
b9a090d835
@ -78,7 +78,7 @@ int cGZipFile::ReadRestOfFile(AString & a_Contents)
|
|||||||
while ((NumBytesRead = gzread(m_File, Buffer, sizeof(Buffer))) > 0)
|
while ((NumBytesRead = gzread(m_File, Buffer, sizeof(Buffer))) > 0)
|
||||||
{
|
{
|
||||||
TotalBytes += NumBytesRead;
|
TotalBytes += NumBytesRead;
|
||||||
a_Contents.append(Buffer, NumBytesRead);
|
a_Contents.append(Buffer, (size_t)NumBytesRead);
|
||||||
}
|
}
|
||||||
// NumBytesRead is < 0 on error
|
// NumBytesRead is < 0 on error
|
||||||
return (NumBytesRead >= 0) ? TotalBytes : NumBytesRead;
|
return (NumBytesRead >= 0) ? TotalBytes : NumBytesRead;
|
||||||
@ -102,7 +102,7 @@ bool cGZipFile::Write(const char * a_Contents, int a_Size)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (gzwrite(m_File, a_Contents, a_Size) != 0);
|
return (gzwrite(m_File, a_Contents, (unsigned int)a_Size) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user