aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util_format.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-20 10:20:03 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-20 10:20:03 -0400
commitba88d78127b4ec9d6c3d8d4318d29f67a3760eab (patch)
tree36349fec07de4fc4d07c26bf0c7e1c8114714eb7 /src/test/test_util_format.c
parent6cedd4932352929496d8e017500362fafd367f18 (diff)
downloadtor-ba88d78127b4ec9d6c3d8d4318d29f67a3760eab.tar.gz
tor-ba88d78127b4ec9d6c3d8d4318d29f67a3760eab.zip
Fix unit test crash on 32-bit.
Diffstat (limited to 'src/test/test_util_format.c')
-rw-r--r--src/test/test_util_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_util_format.c b/src/test/test_util_format.c
index ad2ca317bd..f3dcd1184c 100644
--- a/src/test/test_util_format.c
+++ b/src/test/test_util_format.c
@@ -263,7 +263,7 @@ test_util_format_base16_decode(void *ignored)
res = base16_decode(dst, 1, src, 10);
tt_int_op(res, OP_EQ, -1);
- res = base16_decode(dst, SIZE_T_CEILING+2, src, 10);
+ res = base16_decode(dst, ((size_t)INT_MAX)+1, src, 10);
tt_int_op(res, OP_EQ, -1);
res = base16_decode(dst, 1000, "", 0);