[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Use correct u64 int ops instead of regular int ops, in order to avoid warnings on 32bit clang
commit 3e738211d4301829a7b00fbfd2e57e4f6d671011
Author: Ola Bini <ola@xxxxxxxxxx>
Date: Tue Jan 19 11:11:01 2016 -0500
Use correct u64 int ops instead of regular int ops, in order to avoid warnings on 32bit clang
---
src/test/test_options.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/test/test_options.c b/src/test/test_options.c
index 18e3e91..ed05811 100644
--- a/src/test/test_options.c
+++ b/src/test/test_options.c
@@ -2308,7 +2308,7 @@ test_options_validate__bandwidth(void *ignored)
"RelayBandwidthRate 1000\n");
ret = options_validate(tdata->old_opt, tdata->opt, tdata->def_opt, 0, &msg);
tt_int_op(ret, OP_EQ, 0);
- tt_int_op(tdata->opt->RelayBandwidthBurst, OP_EQ, 1000);
+ tt_u64_op(tdata->opt->RelayBandwidthBurst, OP_EQ, 1000);
tor_free(msg);
free_options_test_data(tdata);
@@ -2316,7 +2316,7 @@ test_options_validate__bandwidth(void *ignored)
"RelayBandwidthBurst 1001\n");
ret = options_validate(tdata->old_opt, tdata->opt, tdata->def_opt, 0, &msg);
tt_int_op(ret, OP_EQ, 0);
- tt_int_op(tdata->opt->RelayBandwidthRate, OP_EQ, 1001);
+ tt_u64_op(tdata->opt->RelayBandwidthRate, OP_EQ, 1001);
tor_free(msg);
free_options_test_data(tdata);
@@ -2347,7 +2347,7 @@ test_options_validate__bandwidth(void *ignored)
);
ret = options_validate(tdata->old_opt, tdata->opt, tdata->def_opt, 0, &msg);
tt_int_op(ret, OP_EQ, 0);
- tt_int_op(tdata->opt->BandwidthRate, OP_EQ, 1001);
+ tt_u64_op(tdata->opt->BandwidthRate, OP_EQ, 1001);
tor_free(msg);
free_options_test_data(tdata);
@@ -2359,7 +2359,7 @@ test_options_validate__bandwidth(void *ignored)
);
ret = options_validate(tdata->old_opt, tdata->opt, tdata->def_opt, 0, &msg);
tt_int_op(ret, OP_EQ, 0);
- tt_int_op(tdata->opt->BandwidthBurst, OP_EQ, 1001);
+ tt_u64_op(tdata->opt->BandwidthBurst, OP_EQ, 1001);
tor_free(msg);
free_options_test_data(tdata);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits