mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
Fixed signed/unsigned comparison
This commit is contained in:
parent
35bdbf6e2e
commit
9f7573c395
@ -46,7 +46,7 @@ namespace
|
||||
unsigned long Read(FT_Stream rec, unsigned long offset, unsigned char* buffer, unsigned long count)
|
||||
{
|
||||
sf::InputStream* stream = static_cast<sf::InputStream*>(rec->descriptor.pointer);
|
||||
if (stream->Seek(offset) == offset)
|
||||
if (static_cast<unsigned long>(stream->Seek(offset)) == offset)
|
||||
{
|
||||
if (count > 0)
|
||||
return static_cast<unsigned long>(stream->Read(reinterpret_cast<char*>(buffer), count));
|
||||
|
Loading…
Reference in New Issue
Block a user