summaryrefslogtreecommitdiff
path: root/src/freetype2/pcf/pcfutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/freetype2/pcf/pcfutil.c')
-rw-r--r--src/freetype2/pcf/pcfutil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/freetype2/pcf/pcfutil.c b/src/freetype2/pcf/pcfutil.c
index 67ddbe8..b91274f 100644
--- a/src/freetype2/pcf/pcfutil.c
+++ b/src/freetype2/pcf/pcfutil.c
@@ -42,9 +42,9 @@ in this Software without prior written authorization from The Open Group.
FT_LOCAL_DEF( void )
BitOrderInvert( unsigned char* buf,
- int nbytes )
+ size_t nbytes )
{
- for ( ; --nbytes >= 0; buf++ )
+ for ( ; nbytes > 0; nbytes--, buf++ )
{
unsigned int val = *buf;
@@ -64,7 +64,7 @@ in this Software without prior written authorization from The Open Group.
FT_LOCAL_DEF( void )
TwoByteSwap( unsigned char* buf,
- int nbytes )
+ size_t nbytes )
{
unsigned char c;
@@ -83,7 +83,7 @@ in this Software without prior written authorization from The Open Group.
FT_LOCAL_DEF( void )
FourByteSwap( unsigned char* buf,
- int nbytes )
+ size_t nbytes )
{
unsigned char c;