diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index 5bc51c83a..59e1e6dc3 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -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(rec->descriptor.pointer); - if (stream->Seek(offset) == offset) + if (static_cast(stream->Seek(offset)) == offset) { if (count > 0) return static_cast(stream->Read(reinterpret_cast(buffer), count));