diff --git a/toxav/rtp_test.cc b/toxav/rtp_test.cc index b41ff905..b0854142 100644 --- a/toxav/rtp_test.cc +++ b/toxav/rtp_test.cc @@ -47,7 +47,7 @@ TEST(Rtp, SerialisingAllOnes) { uint8_t rdata[RTP_HEADER_SIZE]; rtp_header_pack(rdata, &header); - EXPECT_EQ(std::string((char const *)rdata, sizeof rdata), + EXPECT_EQ(std::string(reinterpret_cast(rdata), sizeof rdata), std::string("\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" diff --git a/toxcore/mono_time_test.cc b/toxcore/mono_time_test.cc index 3b33a241..20a6826e 100644 --- a/toxcore/mono_time_test.cc +++ b/toxcore/mono_time_test.cc @@ -36,7 +36,7 @@ TEST(MonoTime, IsTimeout) { } uint64_t test_current_time_callback(Mono_Time *mono_time, void *user_data) { - return *(uint64_t *)user_data; + return *static_cast(user_data); } TEST(MonoTime, CustomTime) {