From 86ddda5c0ee084b2b236bff9d2645c3c80dcce83 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 22 Apr 2015 23:36:32 +0900 Subject: [PATCH] tiny-nghttpd: Fix compile error with travis gcc-4.8 --- examples/tiny-nghttpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/tiny-nghttpd.c b/examples/tiny-nghttpd.c index b25293fe..a7677ee1 100644 --- a/examples/tiny-nghttpd.c +++ b/examples/tiny-nghttpd.c @@ -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;