diff options
author | Ola Bini <ola@olabini.se> | 2016-01-19 11:11:01 -0500 |
---|---|---|
committer | Ola Bini <ola@olabini.se> | 2016-01-19 11:11:01 -0500 |
commit | 3e738211d4301829a7b00fbfd2e57e4f6d671011 (patch) | |
tree | 518b5ad697eae229f83a81e6e5fba66e6f03ce45 /src/test/test_options.c | |
parent | 1722232d78c61238c72a3944b9d1baf5c7792462 (diff) | |
download | tor-3e738211d4301829a7b00fbfd2e57e4f6d671011.tar.gz tor-3e738211d4301829a7b00fbfd2e57e4f6d671011.zip |
Use correct u64 int ops instead of regular int ops, in order to avoid warnings on 32bit clang
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index 18e3e91c13..ed0581199f 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); |