|
|
|
@ -612,7 +612,7 @@ |
|
|
|
|
|
|
|
|
|
/* first of all, reallocate the contours array if necessary */ |
|
|
|
|
new_max = (FT_UInt)outline->n_contours; |
|
|
|
|
old_max = hints->max_contours; |
|
|
|
|
old_max = (FT_UInt)hints->max_contours; |
|
|
|
|
|
|
|
|
|
if ( new_max <= AF_CONTOURS_EMBEDDED ) |
|
|
|
|
{ |
|
|
|
@ -627,12 +627,12 @@ |
|
|
|
|
if ( hints->contours == hints->embedded.contours ) |
|
|
|
|
hints->contours = NULL; |
|
|
|
|
|
|
|
|
|
new_max = ( new_max + 3 ) & ~3; /* round up to a multiple of 4 */ |
|
|
|
|
new_max = ( new_max + 3 ) & ~3U; /* round up to a multiple of 4 */ |
|
|
|
|
|
|
|
|
|
if ( FT_RENEW_ARRAY( hints->contours, old_max, new_max ) ) |
|
|
|
|
goto Exit; |
|
|
|
|
|
|
|
|
|
hints->max_contours = new_max; |
|
|
|
|
hints->max_contours = (FT_Int)new_max; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
@ -641,7 +641,7 @@ |
|
|
|
|
* hint metrics appropriately |
|
|
|
|
*/ |
|
|
|
|
new_max = (FT_UInt)( outline->n_points + 2 ); |
|
|
|
|
old_max = hints->max_points; |
|
|
|
|
old_max = (FT_UInt)hints->max_points; |
|
|
|
|
|
|
|
|
|
if ( new_max <= AF_POINTS_EMBEDDED ) |
|
|
|
|
{ |
|
|
|
@ -656,12 +656,12 @@ |
|
|
|
|
if ( hints->points == hints->embedded.points ) |
|
|
|
|
hints->points = NULL; |
|
|
|
|
|
|
|
|
|
new_max = ( new_max + 2 + 7 ) & ~7; /* round up to a multiple of 8 */ |
|
|
|
|
new_max = ( new_max + 2 + 7 ) & ~7U; /* round up to a multiple of 8 */ |
|
|
|
|
|
|
|
|
|
if ( FT_RENEW_ARRAY( hints->points, old_max, new_max ) ) |
|
|
|
|
goto Exit; |
|
|
|
|
|
|
|
|
|
hints->max_points = new_max; |
|
|
|
|
hints->max_points = (FT_Int)new_max; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
hints->num_points = outline->n_points; |
|
|
|
|