forked from premiere/premiere-libtorrent
Avoid warnings when building tests.
This commit is contained in:
parent
efebbcb2bf
commit
cf9a009fb8
|
@ -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));
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue