diff --git a/I2PControl.cpp b/I2PControl.cpp index d04b91d1..6f2c21ba 100644 --- a/I2PControl.cpp +++ b/I2PControl.cpp @@ -201,7 +201,7 @@ namespace client LogPrint (eLogError, "Malformed I2PControl request. HTTP header expected"); return; // TODO: } - ssize_t rem = contentLength + ss.tellg () - bytes_transferred; // more bytes to read + std::streamoff rem = contentLength + ss.tellg () - bytes_transferred; // more bytes to read if (rem > 0) { bytes_transferred = boost::asio::read (*socket, boost::asio::buffer (buf->data (), rem));