diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2015-12-03 20:06:45 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2015-12-03 20:06:45 +0300 |
commit | 699459347832fc57ab8ba9aefa11d3b2ec5385b0 (patch) | |
tree | 4c83a6987bf7a16722d7559c32f10de06003d845 /src/core/ngx_string.c | |
parent | af4e89b9a18a6bfece623d31a8b4cc6160f847cd (diff) |
Style: NGX_PTR_SIZE replaced with sizeof(void *).
The NGX_PTR_SIZE macro is only needed in preprocessor directives where
it's not possible to use sizeof().
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r-- | src/core/ngx_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index d2a8d0117..cf665a4e8 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -410,7 +410,7 @@ ngx_vslprintf(u_char *buf, u_char *last, const char *fmt, va_list args) hex = 2; sign = 0; zero = '0'; - width = NGX_PTR_SIZE * 2; + width = 2 * sizeof(void *); break; case 'c': |