mirror of
https://github.com/SFML/SFML.git
synced 2025-01-31 21:55:13 +08:00
Fixed two conversion warnings (C4267)
This commit is contained in:
parent
ac38b17827
commit
44d3e26766
@ -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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user