summaryrefslogtreecommitdiffstats
path: root/src/HTTPServer
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-18 18:01:24 +0100
committerMattes D <github@xoft.cz>2015-01-18 18:01:24 +0100
commit45b1d5ff78e23b3de9cbee1e247e2f275b77e9d9 (patch)
tree9c21fb0419d1eb0dfab999daad2ec7e77329cf62 /src/HTTPServer
parentcWorld: Fixed a type warning. (diff)
downloadcuberite-45b1d5ff78e23b3de9cbee1e247e2f275b77e9d9.tar
cuberite-45b1d5ff78e23b3de9cbee1e247e2f275b77e9d9.tar.gz
cuberite-45b1d5ff78e23b3de9cbee1e247e2f275b77e9d9.tar.bz2
cuberite-45b1d5ff78e23b3de9cbee1e247e2f275b77e9d9.tar.lz
cuberite-45b1d5ff78e23b3de9cbee1e247e2f275b77e9d9.tar.xz
cuberite-45b1d5ff78e23b3de9cbee1e247e2f275b77e9d9.tar.zst
cuberite-45b1d5ff78e23b3de9cbee1e247e2f275b77e9d9.zip
Diffstat (limited to 'src/HTTPServer')
-rw-r--r--src/HTTPServer/HTTPMessage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTTPServer/HTTPMessage.cpp b/src/HTTPServer/HTTPMessage.cpp
index f6c0204ae..d59ca438e 100644
--- a/src/HTTPServer/HTTPMessage.cpp
+++ b/src/HTTPServer/HTTPMessage.cpp
@@ -55,7 +55,7 @@ void cHTTPMessage::AddHeader(const AString & a_Key, const AString & a_Value)
}
else if (Key == "content-length")
{
- m_ContentLength = atoi(m_Headers[Key].c_str());
+ m_ContentLength = static_cast<size_t>(atol(m_Headers[Key].c_str()));
}
}