Skip to content

Commit

Permalink
Compatibility: changed for issues/27 that error occurred(comparison o…
Browse files Browse the repository at this point in the history
…f integers of different signs)
  • Loading branch information
vozlt committed Nov 30, 2015
1 parent f7c192a commit 7284e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngx_http_vhost_traffic_status_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2508,7 +2508,7 @@ ngx_http_vhost_traffic_status_node_delete_get_nodes(
if (node != ctx->rbtree->sentinel) {
vtsn = (ngx_http_vhost_traffic_status_node_t *) &node->color;

if (vtsn->stat_upstream.type == control->group) {
if ((ngx_int_t) vtsn->stat_upstream.type == control->group) {

if (*nodes == NULL) {
*nodes = ngx_array_create(control->r->pool, 1,
Expand Down Expand Up @@ -2722,7 +2722,7 @@ ngx_http_vhost_traffic_status_node_reset_group(
if (node != ctx->rbtree->sentinel) {
vtsn = (ngx_http_vhost_traffic_status_node_t *) &node->color;

if (vtsn->stat_upstream.type == control->group) {
if ((ngx_int_t) vtsn->stat_upstream.type == control->group) {
ngx_http_vhost_traffic_status_node_zero(vtsn);
control->count++;
}
Expand Down

0 comments on commit 7284e71

Please sign in to comment.