Use correct u64 int ops instead of regular int ops, in order to avoid warnings on 32bit clang

This commit is contained in:
Ola Bini 2016-01-19 11:11:01 -05:00
parent 1722232d78
commit 3e738211d4
No known key found for this signature in database
GPG Key ID: 465757AF3914B4B7

View File

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