From 9f7573c39578cb123b80fe950c50c277d9ea3e7b Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Mon, 3 Oct 2011 22:10:48 +0200 Subject: [PATCH] Fixed signed/unsigned comparison --- src/SFML/Graphics/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));