diff src/core/ngx_string.c @ 6314:fcbac620ae83

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().
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 03 Dec 2015 20:06:45 +0300
parents 15a15f6ae3a2
children b3682580c1bd
line wrap: on
line diff
--- a/src/core/ngx_string.c
+++ b/src/core/ngx_string.c
@@ -410,7 +410,7 @@ ngx_vslprintf(u_char *buf, u_char *last,
                 hex = 2;
                 sign = 0;
                 zero = '0';
-                width = NGX_PTR_SIZE * 2;
+                width = 2 * sizeof(void *);
                 break;
 
             case 'c':