diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-04-05 15:54:08 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-04-05 15:54:08 +0300 |
commit | c0a423aa74341853b03a3c14ead4fd0a74bbea92 (patch) | |
tree | 77c178ae993aa9bedb7fafd17a8aa0e60cae227b | |
parent | d15b4ca90639d0e6a5caab9ec905e49228072faf (diff) | |
download | unit-c0a423aa74341853b03a3c14ead4fd0a74bbea92.tar.gz unit-c0a423aa74341853b03a3c14ead4fd0a74bbea92.tar.bz2 |
Fixed NXT_INT64_T_HEXLEN.
This closes #89 issue on GitHub.
Thanks to hongzhidao.
-rw-r--r-- | src/nxt_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_types.h b/src/nxt_types.h index f07ab6e7..98e23222 100644 --- a/src/nxt_types.h +++ b/src/nxt_types.h @@ -79,8 +79,8 @@ typedef time_t nxt_time_t; #define NXT_INT64_T_LEN (sizeof("-9223372036854775808") - 1) #define NXT_INT32_T_LEN (sizeof("-2147483648") - 1) -#define NXT_INT64_T_HEXLEN (sizeof("fffffffffffffffff") - 1) -#define NXT_INT32_T_HEXLEN (sizeof("ffffffff") - 1) +#define NXT_INT64_T_HEXLEN (sizeof("FFFFFFFFFFFFFFFF") - 1) +#define NXT_INT32_T_HEXLEN (sizeof("FFFFFFFF") - 1) #define NXT_INT64_T_MAX 0x7FFFFFFFFFFFFFFFLL #define NXT_INT32_T_MAX 0x7FFFFFFF |