diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-09-13 22:32:06 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-09-14 14:08:27 +0000 |
commit | 7821cd84121ac8a4de5c70ab46d36bcbb881bb43 (patch) | |
tree | 1b80ee9f11f6ae72e790f86f75aae7784b3a9b75 /toxav | |
parent | 0688877fba0e224ecd33e521c58475b150575235 (diff) |
Use C++ style casts in C++ code.
Diffstat (limited to 'toxav')
-rw-r--r-- | toxav/rtp_test.cc | 2 |
1 files changed, 1 insertions, 1 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" |