[cff] minor code cleanup

This commit is contained in:
Dave Arnold 2016-11-21 15:32:50 -08:00
parent f34a28d614
commit c7f2a52f86
3 changed files with 3 additions and 4 deletions

View File

@ -46,7 +46,6 @@
FT_BEGIN_HEADER
#define CF2_CFF2_STACK_SIZE 193
#define CF2_OPERAND_STACK_SIZE 48
#define CF2_MAX_SUBR 16 /* maximum subroutine nesting; */
/* only 10 are allowed but there exist */

View File

@ -474,7 +474,7 @@
CF2_Fixed hintOriginY = curY;
CF2_Stack opStack = NULL;
FT_UInt stackSize = font->isCFF2 ? CF2_CFF2_STACK_SIZE : CF2_OPERAND_STACK_SIZE;
FT_UInt stackSize;
FT_Byte op1; /* first opcode byte */
CF2_F16Dot16 storage[CF2_STORAGE_SIZE]; /* for `put' and `get' */

View File

@ -1260,7 +1260,7 @@
/* compute expected number of operands for this blend */
FT_UInt numOperands = (FT_UInt)(numBlends * blend->lenBV);
FT_UInt count = parser->top - 1 - parser->stack;
FT_UInt count = (FT_UInt)( parser->top - 1 - parser->stack );
if ( numOperands > count )
{
@ -1859,7 +1859,7 @@ Exit:
top->cid_font_name = 0xFFFFU;
/* set default stack size */
top->maxstack = cff2 ? 193 : 48;
top->maxstack = cff2 ? CFF2_DEFAULT_STACK : 48;
if ( idx->count ) /* count is nonzero for a real index */
error = cff_index_access_element( idx, font_index, &dict, &dict_len );