diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2013-09-04 20:48:23 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-09-04 20:48:23 +0400 |
commit | 74b7a910137a99b5fb073e7c27858c019f96a8cc (patch) | |
tree | 00d2621de512d3cbae54c9e7a839e84df4825ba8 /src/http/modules/ngx_http_memcached_module.c | |
parent | 5b3785232303f9c44543b20e1499c756462c53e6 (diff) | |
download | nginx-74b7a910137a99b5fb073e7c27858c019f96a8cc.tar.gz nginx-74b7a910137a99b5fb073e7c27858c019f96a8cc.zip |
Win32: Borland C compatibility fixes.
Several false positive warnings silenced, notably W8012 "Comparing
signed and unsigned" (due to u_short values promoted to int), and
W8072 "Suspicious pointer arithmetic" (due to large type values added
to pointers).
With this patch, it's now again possible to compile nginx using bcc32,
with options we normally compile on win32 minus ipv6 and ssl.
Diffstat (limited to 'src/http/modules/ngx_http_memcached_module.c')
-rw-r--r-- | src/http/modules/ngx_http_memcached_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_memcached_module.c b/src/http/modules/ngx_http_memcached_module.c index bfff1bfc2..aaa047e8f 100644 --- a/src/http/modules/ngx_http_memcached_module.c +++ b/src/http/modules/ngx_http_memcached_module.c @@ -520,7 +520,7 @@ ngx_http_memcached_filter(void *data, ssize_t bytes) return NGX_OK; } - last += u->length - NGX_HTTP_MEMCACHED_END; + last += (size_t) (u->length - NGX_HTTP_MEMCACHED_END); if (ngx_strncmp(last, ngx_http_memcached_end, b->last - last) != 0) { ngx_log_error(NGX_LOG_ERR, ctx->request->connection->log, 0, |