mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Use C++ style casts in C++ code.
This commit is contained in:
parent
0688877fba
commit
7821cd8412
|
@ -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<char const *>(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"
|
||||
|
|
|
@ -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<uint64_t *>(user_data);
|
||||
}
|
||||
|
||||
TEST(MonoTime, CustomTime) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user