* src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): fixed small
bug that prevented compilation when FT_OPTIMIZE_MEMORY is defined
This commit is contained in:
parent
8b560632d7
commit
8c16ed361c
@ -1,3 +1,8 @@
|
||||
2006-01-19 David Turner <david@freetype.org>
|
||||
|
||||
* src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): fixed small
|
||||
bug that prevented compilation when FT_OPTIMIZE_MEMORY is defined
|
||||
|
||||
2006-01-19 Brian Weed <bw@imaginengine.com>
|
||||
|
||||
* builds/win32/visualc/freetype.dsp: Updated.
|
||||
|
@ -221,9 +221,13 @@
|
||||
{
|
||||
FT_Byte* strike;
|
||||
|
||||
|
||||
#ifdef FT_OPTIMIZE_MEMORY
|
||||
if ( strike_index >= (FT_ULong)face->sbit_num_strikes )
|
||||
return SFNT_Err_Invalid_Argument;
|
||||
#else
|
||||
if ( strike_index >= (FT_ULong)face->num_sbit_strikes )
|
||||
return SFNT_Err_Invalid_Argument;
|
||||
#endif
|
||||
|
||||
strike = face->sbit_table + 8 + strike_index * 48;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user