From ba88d78127b4ec9d6c3d8d4318d29f67a3760eab Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 20 Jun 2016 10:20:03 -0400 Subject: [PATCH] Fix unit test crash on 32-bit. --- src/test/test_util_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);