Fixed two conversion warnings (C4267)

This commit is contained in:
Ironbell 2018-06-13 21:09:48 +02:00 committed by Lukas Dürrenberger
parent ac38b17827
commit 44d3e26766
2 changed files with 2 additions and 2 deletions

View File

@ -708,7 +708,7 @@ void RenderTarget::drawPrimitives(PrimitiveType type, std::size_t firstVertex, s
GLenum mode = modes[type]; GLenum mode = modes[type];
// Draw the primitives // Draw the primitives
glCheck(glDrawArrays(mode, firstVertex, static_cast<GLsizei>(vertexCount))); glCheck(glDrawArrays(mode, static_cast<GLint>(firstVertex), static_cast<GLsizei>(vertexCount)));
} }

View File

@ -246,7 +246,7 @@ Socket::Status TcpSocket::send(const void* data, std::size_t size, std::size_t&
for (sent = 0; sent < size; sent += result) for (sent = 0; sent < size; sent += result)
{ {
// Send a chunk of data // Send a chunk of data
result = ::send(getHandle(), static_cast<const char*>(data) + sent, size - sent, flags); result = ::send(getHandle(), static_cast<const char*>(data) + sent, static_cast<int>(size - sent), flags);
// Check for errors // Check for errors
if (result < 0) if (result < 0)