]> git.kaiwu.me - nginx.git/commitdiff
Stream: fixed MSVC compilation warning.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 2 Jul 2015 14:15:32 +0000 (17:15 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 2 Jul 2015 14:15:32 +0000 (17:15 +0300)
Thanks to itpp2012.

src/stream/ngx_stream_proxy_module.c

index ebbe02718eca78831865033d859f7800ba73b00d..761e5f70866e77ced90bfab0b28590aebf4e21c0 100644 (file)
@@ -1063,7 +1063,7 @@ ngx_stream_proxy_process(ngx_stream_session_t *s, ngx_uint_t from_upstream,
                 }
 
                 if (size > (size_t) limit) {
-                    size = limit;
+                    size = (size_t) limit;
                 }
             }