tiny-nghttpd: Fix compile error with travis gcc-4.8
This commit is contained in:
parent
58b7f4a096
commit
86ddda5c0e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue