summaryrefslogtreecommitdiff
path: root/src/base/ftgloadr.c
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2003-12-24 01:10:46 +0000
committerDavid Turner <david@freetype.org>2003-12-24 01:10:46 +0000
commit87c0d30fc5fe512c8971510622091dd2c7a83031 (patch)
tree0458c6a6487b5295941b4e36691171999b7e2741 /src/base/ftgloadr.c
parent023612221e75e7240316d67a01d80cad069023f6 (diff)
downloadfreetype2-87c0d30fc5fe512c8971510622091dd2c7a83031.tar.gz
* include/freetype/fttypes.h
src/autofit/afangles.c src/autofit/aflatin.c src/autohint/ahglyph.c src/autohint/ahhint.c src/base/ftcalc.c src/base/ftgloadr.c src/base/ftglyph.c src/base/ftobjs.c src/base/ftsynth.c src/base/fttrigon.c src/cff/cffgload.c src/cid/cidgload.c src/cid/cidload.c src/pfr/pfrgload.c src/pfr/pfrload.c src/pfr/pfrsbit.c src/psaux/psobjs.c src/pshinter/pshalgo.c src/pshinter/pshglob.c src/pshinter/pshrec.c src/raster/ftrend1.c src/sfnt/ttcmap0.c src/smooth/ftsmooth.c src/truetype/ttdriver.c src/truetype/ttgload.c src/truetype/ttinterp.c src/truetype/ttobjs.c src/type1/t1gload.c src/winfonts/winfnt.c: use of the FT_PAD_XXX and FT_PIX_XXX macros to avoid compiler warnings with very pedantic compilers. Hints: (x) & -64 will warn if (x) is not signed.. use (x) & ~63 instead !
Diffstat (limited to 'src/base/ftgloadr.c')
-rw-r--r--src/base/ftgloadr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/ftgloadr.c b/src/base/ftgloadr.c
index 5a2eb5160..8c722abdb 100644
--- a/src/base/ftgloadr.c
+++ b/src/base/ftgloadr.c
@@ -205,7 +205,7 @@
if ( new_max > old_max )
{
- new_max = ( new_max + 7 ) & -8;
+ new_max = FT_PAD_CEIL( new_max, 8 );
if ( FT_RENEW_ARRAY( base->points, old_max, new_max ) ||
FT_RENEW_ARRAY( base->tags, old_max, new_max ) )
@@ -225,7 +225,7 @@
n_contours;
if ( new_max > old_max )
{
- new_max = ( new_max + 3 ) & -4;
+ new_max = FT_PAD_CEIL( new_max, 4 );
if ( FT_RENEW_ARRAY( base->contours, old_max, new_max ) )
goto Exit;
@@ -261,7 +261,7 @@
old_max = loader->max_subglyphs;
if ( new_max > old_max )
{
- new_max = ( new_max + 1 ) & -2;
+ new_max = FT_PAD_CEIL( new_max, 2 );
if ( FT_RENEW_ARRAY( base->subglyphs, old_max, new_max ) )
goto Exit;