From f98d003e354a1792117b7cbc771d1dd91475a156 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Mar 2011 17:48:29 +0200 Subject: Fix most old style cast except manaserv and libxml2 defines. --- src/net/download.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/download.cpp') 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(malloc(fileSize)); const size_t read = fread(buffer, 1, fileSize, file); unsigned long adler = adler32(0L, Z_NULL, 0); - adler = adler32(static_cast(adler), (Bytef*)buffer, read); + adler = adler32(static_cast(adler), + reinterpret_cast(buffer), read); free(buffer); return adler; -- cgit v1.2.3-70-g09d2