aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-05-08 12:48:41 -0400
committerNick Mathewson <nickm@torproject.org>2014-05-08 12:48:41 -0400
commit1f11be21700af2c9050ea79f2c8942786eda79ba (patch)
tree5da0ad61726de8e9bf3af97e26a9608d86e5fc35 /src/test
parent891d239e012aadc907a0d98fb7a8268ff40bb62a (diff)
downloadtor-1f11be21700af2c9050ea79f2c8942786eda79ba.tar
tor-1f11be21700af2c9050ea79f2c8942786eda79ba.tar.gz
Fix test_util_max_mem on 32-bit CPUs
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index f2a0eafb3..e21f5aa61 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -3627,17 +3627,17 @@ test_util_max_mem(void *arg)
r = get_total_system_memory(&memory1);
r2 = get_total_system_memory(&memory2);
tt_int_op(r, ==, r2);
- tt_int_op(memory2, ==, memory1);
+ tt_uint_op(memory2, ==, memory1);
TT_BLATHER(("System memory: "U64_FORMAT, U64_PRINTF_ARG(memory1)));
if (r==0) {
/* You have at least a megabyte. */
- tt_int_op(memory1, >, (1<<20));
+ tt_uint_op(memory1, >, (1<<20));
} else {
/* You do not have a petabyte. */
#if SIZEOF_SIZE_T == SIZEOF_UINT64_T
- tt_int_op(memory1, <, (U64_LITERAL(1)<<50));
+ tt_uint_op(memory1, <, (U64_LITERAL(1)<<50));
#endif
}