mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Replace 'reinterpret_cast' with 'static_cast'
This commit is contained in:
parent
53ede795a2
commit
6d44afc7dd
26 changed files with 31 additions and 36 deletions
|
@ -293,7 +293,7 @@ u16 ComputeNetworkChecksum(const void* data, u16 length, u32 initial_value)
|
|||
{
|
||||
u32 checksum = initial_value;
|
||||
std::size_t index = 0;
|
||||
const std::string_view data_view{reinterpret_cast<const char*>(data), length};
|
||||
const std::string_view data_view{static_cast<const char*>(data), length};
|
||||
for (u8 b : data_view)
|
||||
{
|
||||
const bool is_hi = index++ % 2 == 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue