mirror of
https://github.com/SFML/SFML.git
synced 2025-02-23 14:56:02 +08:00
Remove unnecessary reinterpret_cast
This commit is contained in:
parent
6bb541d741
commit
3fa47911f9
@ -45,7 +45,7 @@ void Packet::append(const void* data, std::size_t sizeInBytes)
|
|||||||
{
|
{
|
||||||
if (data && (sizeInBytes > 0))
|
if (data && (sizeInBytes > 0))
|
||||||
{
|
{
|
||||||
const auto* begin = reinterpret_cast<const std::byte*>(data);
|
const auto* begin = static_cast<const std::byte*>(data);
|
||||||
const auto* end = begin + sizeInBytes;
|
const auto* end = begin + sizeInBytes;
|
||||||
m_data.insert(m_data.end(), begin, end);
|
m_data.insert(m_data.end(), begin, end);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user