tiny-nghttpd: Fix compile error with travis gcc-4.8

This commit is contained in:
Tatsuhiro Tsujikawa 2015-04-22 23:36:32 +09:00
parent 58b7f4a096
commit 86ddda5c0e
1 changed files with 2 additions and 1 deletions

View File

@ -699,7 +699,8 @@ static ssize_t fd_read_callback(nghttp2_session *session _U_,
nghttp2_data_source *source,
void *user_data _U_) {
stream *strm = source->ptr;
ssize_t nread = (int64_t)length < strm->fileleft ? length : strm->fileleft;
ssize_t nread =
(int64_t)length < strm->fileleft ? (int64_t)length : strm->fileleft;
*data_flags |= NGHTTP2_DATA_FLAG_NO_COPY;