Avoid warnings when building tests.

This commit is contained in:
Jakob Petsovits 2015-07-15 17:21:26 -04:00 committed by Jakob Petsovits
parent efebbcb2bf
commit cf9a009fb8
2 changed files with 3 additions and 3 deletions

View File

@ -241,7 +241,7 @@ TORRENT_TEST(wait_for_alert)
alert* a = mgr.wait_for_alert(seconds(1));
time_point end = clock_type::now();
TEST_EQUAL(a, NULL);
TEST_EQUAL(a, static_cast<alert*>(0));
TEST_CHECK(end - start > milliseconds(900));
TEST_CHECK(end - start < milliseconds(1100));

View File

@ -471,7 +471,7 @@ TORRENT_TEST(bencoding)
TEST_EQUAL(ps.len, 6);
ps = e.dict_find_pstr("foobar2");
TEST_EQUAL(ps.ptr, NULL);
TEST_EQUAL(ps.ptr, static_cast<char const*>(0));
TEST_EQUAL(ps.len, 0);
}
@ -491,7 +491,7 @@ TORRENT_TEST(bencoding)
TEST_EQUAL(ps.len, 6);
ps = e.list_pstr_at(1);
TEST_EQUAL(ps.ptr, NULL);
TEST_EQUAL(ps.ptr, static_cast<char const*>(0));
TEST_EQUAL(ps.len, 0);
}