summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-04-05 15:54:08 +0300
committerValentin Bartenev <vbart@nginx.com>2018-04-05 15:54:08 +0300
commitc0a423aa74341853b03a3c14ead4fd0a74bbea92 (patch)
tree77c178ae993aa9bedb7fafd17a8aa0e60cae227b /src
parentd15b4ca90639d0e6a5caab9ec905e49228072faf (diff)
downloadunit-c0a423aa74341853b03a3c14ead4fd0a74bbea92.tar.gz
unit-c0a423aa74341853b03a3c14ead4fd0a74bbea92.tar.bz2
Fixed NXT_INT64_T_HEXLEN.
This closes #89 issue on GitHub. Thanks to hongzhidao.
Diffstat (limited to 'src')
-rw-r--r--src/nxt_types.h4
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