summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-08 22:47:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-08 22:47:17 +0300
commit3f9d0c023f3d84de0c68dbf9f7c29aa1b0abb9c9 (patch)
tree93589fc3f913324254ad543481691565e0baf67e /src/net/download.cpp
parent8daa939a45794c26a33e109c13c4d6f58a46e00e (diff)
downloadplus-3f9d0c023f3d84de0c68dbf9f7c29aa1b0abb9c9.tar.gz
plus-3f9d0c023f3d84de0c68dbf9f7c29aa1b0abb9c9.tar.bz2
plus-3f9d0c023f3d84de0c68dbf9f7c29aa1b0abb9c9.tar.xz
plus-3f9d0c023f3d84de0c68dbf9f7c29aa1b0abb9c9.zip
Fix code style in net.
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r--src/net/download.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index e1b5012fd..6d13be8bf 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -143,7 +143,7 @@ unsigned long Download::fadler32(FILE *const file)
rewind(file);
// Calculate Adler-32 checksum
- char *const buffer = new char[fileSize];
+ char *const buffer = new char[static_cast<size_t>(fileSize)];
const uInt read = static_cast<uInt>(fread(buffer, 1, fileSize, file));
unsigned long adler = adler32(0L, Z_NULL, 0);
adler = adler32(static_cast<uInt>(adler),