[nginx] Resolver: removed unnecessary casts.

Ruslan Ermilov ru at nginx.com
Fri Dec 13 16:54:37 UTC 2013


details:   http://hg.nginx.org/nginx/rev/b2fc466a11a7
branches:  
changeset: 5469:b2fc466a11a7
user:      Ruslan Ermilov <ru at nginx.com>
date:      Fri Dec 06 14:30:27 2013 +0400
description:
Resolver: removed unnecessary casts.

diffstat:

 src/core/ngx_resolver.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 5c410d6ca7dd -r b2fc466a11a7 src/core/ngx_resolver.c
--- a/src/core/ngx_resolver.c	Fri Dec 06 14:30:27 2013 +0400
+++ b/src/core/ngx_resolver.c	Fri Dec 06 14:30:27 2013 +0400
@@ -1589,7 +1589,7 @@ ngx_resolver_process_ptr(ngx_resolver_t 
 
     i += sizeof("\7in-addr\4arpa") + sizeof(ngx_resolver_qs_t);
 
-    if (i + 2 + sizeof(ngx_resolver_an_t) > (ngx_uint_t) n) {
+    if (i + 2 + sizeof(ngx_resolver_an_t) > n) {
         goto short_response;
     }
 
@@ -1617,7 +1617,7 @@ ngx_resolver_process_ptr(ngx_resolver_t 
 
     i += 2 + sizeof(ngx_resolver_an_t);
 
-    if (i + len > (ngx_uint_t) n) {
+    if (i + len > n) {
         goto short_response;
     }
 



More information about the nginx-devel mailing list