[nginx] HTTP/2: unbreak build on MSVC.

Maxim Dounin mdounin at mdounin.ru
Tue Oct 18 14:47:56 UTC 2016


details:   http://hg.nginx.org/nginx/rev/696dbfb0490a
branches:  stable-1.10
changeset: 6751:696dbfb0490a
user:      Valentin Bartenev <vbart at nginx.com>
date:      Tue May 24 21:54:32 2016 +0300
description:
HTTP/2: unbreak build on MSVC.

diffstat:

 src/http/v2/ngx_http_v2.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c
+++ b/src/http/v2/ngx_http_v2.c
@@ -3544,7 +3544,7 @@ ngx_http_v2_read_request_body(ngx_http_r
     }
 
     if (r->request_body_no_buffering) {
-        size = len - h2scf->preread_size;
+        size = (size_t) len - h2scf->preread_size;
 
     } else {
         stream->no_flow_control = 1;



More information about the nginx-devel mailing list