From f4792bc06f21335fc2d1171d937ea7645ca0c253 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Mar 2011 22:13:37 +0200 Subject: Fix most conversions except manaserv net code and some other code. --- src/net/download.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/download.cpp') diff --git a/src/net/download.cpp b/src/net/download.cpp index aa2793ddb..1badf1763 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -90,7 +90,7 @@ unsigned long Download::fadler32(FILE *file) // Calculate Adler-32 checksum char *buffer = static_cast(malloc(fileSize)); - const size_t read = fread(buffer, 1, fileSize, file); + const uInt read = static_cast(fread(buffer, 1, fileSize, file)); unsigned long adler = adler32(0L, Z_NULL, 0); adler = adler32(static_cast(adler), reinterpret_cast(buffer), read); -- cgit v1.2.3-70-g09d2