* src/truetype/ttgxvar.c (FT_Stream_SeekSet): Fix warning (#51395).
This commit is contained in:
parent
1c85479d2d
commit
4261e497d8
|
@ -1,3 +1,7 @@
|
|||
2017-07-05 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/truetype/ttgxvar.c (FT_Stream_SeekSet): Fix warning (#51395).
|
||||
|
||||
2017-07-04 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[truetype] Prevent address overflow (#51365).
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue