Commit 2b458666 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpd: Fix compiler warning

parent 06a8d684
...@@ -1239,7 +1239,7 @@ int on_data_chunk_recv_callback(nghttp2_session *session, uint8_t flags, ...@@ -1239,7 +1239,7 @@ int on_data_chunk_recv_callback(nghttp2_session *session, uint8_t flags,
// TODO Handle POST // TODO Handle POST
if (stream->upload_left != -1) { if (stream->upload_left != -1) {
if (stream->upload_left < len) { if (stream->upload_left < static_cast<int64_t>(len)) {
stream->upload_left = -1; stream->upload_left = -1;
hd->submit_rst_stream(stream, NGHTTP2_PROTOCOL_ERROR); hd->submit_rst_stream(stream, NGHTTP2_PROTOCOL_ERROR);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment