]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: unbreak build on MSVC.
authorValentin Bartenev <vbart@nginx.com>
Tue, 24 May 2016 18:54:32 +0000 (21:54 +0300)
committerValentin Bartenev <vbart@nginx.com>
Tue, 24 May 2016 18:54:32 +0000 (21:54 +0300)
src/http/v2/ngx_http_v2.c

index cd0243cfce9ee30c363f9a01db1954990bc82986..208f0f325abba20a043977a63d1ae4695a368e49 100644 (file)
@@ -3544,7 +3544,7 @@ ngx_http_v2_read_request_body(ngx_http_request_t *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;