nghttpd: Fix compiler warning

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-16 23:22:10 +09:00
parent 06a8d684a6
commit 2b458666ba
1 changed files with 1 additions and 1 deletions

View File

@ -1239,7 +1239,7 @@ int on_data_chunk_recv_callback(nghttp2_session *session, uint8_t flags,
// TODO Handle POST
if (stream->upload_left != -1) {
if (stream->upload_left < len) {
if (stream->upload_left < static_cast<int64_t>(len)) {
stream->upload_left = -1;
hd->submit_rst_stream(stream, NGHTTP2_PROTOCOL_ERROR);
return 0;