summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r--src/net/download.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index 40d7c872a..aa2793ddb 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -92,7 +92,8 @@ unsigned long Download::fadler32(FILE *file)
char *buffer = static_cast<char*>(malloc(fileSize));
const size_t read = fread(buffer, 1, fileSize, file);
unsigned long adler = adler32(0L, Z_NULL, 0);
- adler = adler32(static_cast<uInt>(adler), (Bytef*)buffer, read);
+ adler = adler32(static_cast<uInt>(adler),
+ reinterpret_cast<Bytef*>(buffer), read);
free(buffer);
return adler;