]> git.kaiwu.me - nginx.git/commit
Handling of ngx_int_t != intptr_t case.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 4 Sep 2013 17:16:59 +0000 (21:16 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 4 Sep 2013 17:16:59 +0000 (21:16 +0400)
commit2b0dba578fed500c1955979a8e281f4fad53bad9
treee6f6e6e857fba187334f34036d6793ba8c2943ae
parent5ab74625d6b28860a08d64ee808a62508a1491dc
Handling of ngx_int_t != intptr_t case.

Casts between pointers and integers produce warnings on size mismatch.  To
silence them, cast to (u)intptr_t should be used.  Prevoiusly, casts to
ngx_(u)int_t were used in some cases, and several ngx_int_t expressions had
no casts.

As of now it's mostly style as ngx_int_t is defined as intptr_t.
src/core/ngx_slab.c
src/http/modules/ngx_http_map_module.c
src/http/modules/perl/ngx_http_perl_module.c