Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
6313:be3aed17689c | 6314:fcbac620ae83 |
---|---|
408 case 'p': | 408 case 'p': |
409 ui64 = (uintptr_t) va_arg(args, void *); | 409 ui64 = (uintptr_t) va_arg(args, void *); |
410 hex = 2; | 410 hex = 2; |
411 sign = 0; | 411 sign = 0; |
412 zero = '0'; | 412 zero = '0'; |
413 width = NGX_PTR_SIZE * 2; | 413 width = 2 * sizeof(void *); |
414 break; | 414 break; |
415 | 415 |
416 case 'c': | 416 case 'c': |
417 d = va_arg(args, int); | 417 d = va_arg(args, int); |
418 *buf++ = (u_char) (d & 0xff); | 418 *buf++ = (u_char) (d & 0xff); |