summaryrefslogtreecommitdiffstats
path: root/net/tools/quic/quic_simple_server_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/tools/quic/quic_simple_server_stream.cc')
-rw-r--r--net/tools/quic/quic_simple_server_stream.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tools/quic/quic_simple_server_stream.cc b/net/tools/quic/quic_simple_server_stream.cc
index b715574..e0a3c2f 100644
--- a/net/tools/quic/quic_simple_server_stream.cc
+++ b/net/tools/quic/quic_simple_server_stream.cc
@@ -58,7 +58,7 @@ void QuicSimpleServerStream::OnDataAvailable() {
body_.append(static_cast<char*>(iov.iov_base), iov.iov_len);
if (content_length_ >= 0 &&
- static_cast<int>(body_.size()) > content_length_) {
+ body_.size() > static_cast<uint64_t>(content_length_)) {
DVLOG(1) << "Body size (" << body_.size() << ") > content length ("
<< content_length_ << ").";
SendErrorResponse();
@@ -86,7 +86,7 @@ void QuicSimpleServerStream::OnDataAvailable() {
}
if (content_length_ > 0 &&
- content_length_ != static_cast<int>(body_.size())) {
+ static_cast<uint64_t>(content_length_) != body_.size()) {
DVLOG(1) << "Content length (" << content_length_ << ") != body size ("
<< body_.size() << ").";
SendErrorResponse();