diff options
author | madmaxoft <github@xoft.cz> | 2014-04-01 15:00:30 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-01 15:00:30 +0200 |
commit | b9a090d835c9434570166b7cddcb8b6d7e2628e4 (patch) | |
tree | 743dd554792f4474021dc1ca86287fc20b30983a /src | |
parent | Fixed clang warnings in BlockHandlers. (diff) | |
download | cuberite-b9a090d835c9434570166b7cddcb8b6d7e2628e4.tar cuberite-b9a090d835c9434570166b7cddcb8b6d7e2628e4.tar.gz cuberite-b9a090d835c9434570166b7cddcb8b6d7e2628e4.tar.bz2 cuberite-b9a090d835c9434570166b7cddcb8b6d7e2628e4.tar.lz cuberite-b9a090d835c9434570166b7cddcb8b6d7e2628e4.tar.xz cuberite-b9a090d835c9434570166b7cddcb8b6d7e2628e4.tar.zst cuberite-b9a090d835c9434570166b7cddcb8b6d7e2628e4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/GZipFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OSSupport/GZipFile.cpp b/src/OSSupport/GZipFile.cpp index b13e519e0..7a8433f4f 100644 --- a/src/OSSupport/GZipFile.cpp +++ b/src/OSSupport/GZipFile.cpp @@ -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); } |