From 28538069b2f1909a7600ec6d25f8efb78be496fd Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 8 May 2014 14:01:17 -0400 Subject: Fix numerous 64->32 errors in the unit tests Before the 11825 fix, these were all silently ignored. --- src/test/test_crypto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/test_crypto.c') diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c index 1fda334760..5d8edb6550 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -1132,7 +1132,8 @@ test_crypto_curve25519_persist(void *arg) content = read_file_to_str(fname, RFTS_BIN, &st); tt_assert(content); taglen = strlen("== c25519v1: testing =="); - tt_int_op(st.st_size, ==, 32+CURVE25519_PUBKEY_LEN+CURVE25519_SECKEY_LEN); + tt_u64_op((uint64_t)st.st_size, ==, + 32+CURVE25519_PUBKEY_LEN+CURVE25519_SECKEY_LEN); tt_assert(fast_memeq(content, "== c25519v1: testing ==", taglen)); tt_assert(tor_mem_is_zero(content+taglen, 32-taglen)); cp = content + 32; -- cgit v1.2.3-54-g00ecf