mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 06:53:10 +00:00
Fixed NGX_TID_T_FMT format specification for uint64_t.
Previously, "%uA" was used, which corresponds to ngx_atomic_uint_t. Size of ngx_atomic_uint_t can be easily different from uint64_t, leading to undefined results.
This commit is contained in:
parent
b93931ae82
commit
5a19c034f3
1 changed files with 2 additions and 2 deletions
|
|
@ -47,12 +47,12 @@ typedef uint32_t ngx_tid_t;
|
|||
#elif (NGX_DARWIN)
|
||||
|
||||
typedef uint64_t ngx_tid_t;
|
||||
#define NGX_TID_T_FMT "%uA"
|
||||
#define NGX_TID_T_FMT "%uL"
|
||||
|
||||
#else
|
||||
|
||||
typedef uint64_t ngx_tid_t;
|
||||
#define NGX_TID_T_FMT "%uA"
|
||||
#define NGX_TID_T_FMT "%uL"
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue