diff options
-rw-r--r-- | toxav/rtp_test.cc | 2 | ||||
-rw-r--r-- | toxcore/mono_time_test.cc | 2 |
2 files changed, 2 insertions, 2 deletions
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) { | |||
47 | uint8_t rdata[RTP_HEADER_SIZE]; | 47 | uint8_t rdata[RTP_HEADER_SIZE]; |
48 | rtp_header_pack(rdata, &header); | 48 | rtp_header_pack(rdata, &header); |
49 | 49 | ||
50 | EXPECT_EQ(std::string((char const *)rdata, sizeof rdata), | 50 | EXPECT_EQ(std::string(reinterpret_cast<char const *>(rdata), sizeof rdata), |
51 | std::string("\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" | 51 | std::string("\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
52 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" | 52 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
53 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" | 53 | "\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) { | |||
36 | } | 36 | } |
37 | 37 | ||
38 | uint64_t test_current_time_callback(Mono_Time *mono_time, void *user_data) { | 38 | uint64_t test_current_time_callback(Mono_Time *mono_time, void *user_data) { |
39 | return *(uint64_t *)user_data; | 39 | return *static_cast<uint64_t *>(user_data); |
40 | } | 40 | } |
41 | 41 | ||
42 | TEST(MonoTime, CustomTime) { | 42 | TEST(MonoTime, CustomTime) { |