Fix unit test crash on 32-bit.

This commit is contained in:
Nick Mathewson 2016-06-20 10:20:03 -04:00
parent 6cedd49323
commit ba88d78127

View File

@ -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);