diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2018-07-22 04:03:40 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2018-07-22 04:03:40 +0300 |
commit | 5a19c034f3f1870de7c4254d2e1e32749a596112 (patch) | |
tree | 3808bcfa50ee41ed7bd5e9a1e135330fbdddded1 /src/os/unix/ngx_thread.h | |
parent | b93931ae8292a485e045c36f963d843a74507d1e (diff) | |
download | nginx-5a19c034f3f1870de7c4254d2e1e32749a596112.tar.gz nginx-5a19c034f3f1870de7c4254d2e1e32749a596112.zip |
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.
Diffstat (limited to 'src/os/unix/ngx_thread.h')
-rw-r--r-- | src/os/unix/ngx_thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/ngx_thread.h b/src/os/unix/ngx_thread.h index 1b52dd7fb..e3b5e8134 100644 --- a/src/os/unix/ngx_thread.h +++ b/src/os/unix/ngx_thread.h @@ -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 |