ref: 4261e497d85b4c99613d48cfe20a1cb3d2efcbdd
parent: 1c85479d2d1de54a4b592ffbef0ae24f498053d2
author: Werner Lemberg <[email protected]>
date: Wed Jul 5 19:00:23 EDT 2017
* src/truetype/ttgxvar.c (FT_Stream_SeekSet): Fix warning (#51395).
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-07-05 Werner Lemberg <[email protected]>
+
+ * src/truetype/ttgxvar.c (FT_Stream_SeekSet): Fix warning (#51395).
+
2017-07-04 Werner Lemberg <[email protected]>
[truetype] Prevent address overflow (#51365).
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -60,10 +60,11 @@
#define FT_Stream_FTell( stream ) \
(FT_ULong)( (stream)->cursor - (stream)->base )
-#define FT_Stream_SeekSet( stream, off ) \
- (stream)->cursor = ( (off) < (stream)->limit - (stream)->base ) \
- ? (stream)->base + (off) \
- : (stream)->limit
+#define FT_Stream_SeekSet( stream, off ) \
+ (stream)->cursor = \
+ ( (off) < (FT_ULong)( (stream)->limit - (stream)->base ) ) \
+ ? (stream)->base + (off) \
+ : (stream)->limit
/*************************************************************************/