* 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:
David Turner 2006-01-19 13:10:49 +00:00
parent 8b560632d7
commit 8c16ed361c
2 changed files with 10 additions and 1 deletions

View File

@ -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.

View File

@ -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;