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

Valentin Bartenev vbart at nginx.com
Tue May 24 18:55:16 UTC 2016


details:   http://hg.nginx.org/nginx/rev/bc6fd7afeed6
branches:  
changeset: 6572:bc6fd7afeed6
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 -r c3d73d75b83f -r bc6fd7afeed6 src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c	Tue May 24 21:54:32 2016 +0300
+++ b/src/http/v2/ngx_http_v2.c	Tue May 24 21:54:32 2016 +0300
@@ -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