Replace useless reinterpret_cast by static_cast

Former-commit-id: f61d644d968d4fe9523a5cd122e11525a9c2765d
This commit is contained in:
Lynix
2016-04-07 04:20:18 +02:00
parent 9efed23cbc
commit a31a969409
17 changed files with 42 additions and 42 deletions

View File

@@ -221,7 +221,7 @@ namespace Nz
{
int sendSize = static_cast<int>(std::min<std::size_t>(size - totalByteSent, std::numeric_limits<int>::max())); //< Handle very large send
int sentSize;
if (!SocketImpl::Send(m_handle, reinterpret_cast<const UInt8*>(buffer) + totalByteSent, sendSize, &sentSize, &m_lastError))
if (!SocketImpl::Send(m_handle, static_cast<const UInt8*>(buffer) + totalByteSent, sendSize, &sentSize, &m_lastError))
{
switch (m_lastError)
{

View File

@@ -405,7 +405,7 @@ namespace Nz
NazaraAssert(handle != InvalidHandle, "Invalid handle");
NazaraAssert(buffer && length > 0, "Invalid buffer");
int byteRead = recv(handle, reinterpret_cast<char*>(buffer), length, 0);
int byteRead = recv(handle, static_cast<char*>(buffer), length, 0);
if (byteRead == SOCKET_ERROR)
{
int errorCode = WSAGetLastError();