diff options
Diffstat (limited to 'freetype/src/pcf/pcfutil.c')
-rw-r--r-- | freetype/src/pcf/pcfutil.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/freetype/src/pcf/pcfutil.c b/freetype/src/pcf/pcfutil.c index b91274f93..0451ee8de 100644 --- a/freetype/src/pcf/pcfutil.c +++ b/freetype/src/pcf/pcfutil.c @@ -66,11 +66,11 @@ in this Software without prior written authorization from The Open Group. TwoByteSwap( unsigned char* buf, size_t nbytes ) { - unsigned char c; - - for ( ; nbytes >= 2; nbytes -= 2, buf += 2 ) { + unsigned char c; + + c = buf[0]; buf[0] = buf[1]; buf[1] = c; @@ -85,11 +85,11 @@ in this Software without prior written authorization from The Open Group. FourByteSwap( unsigned char* buf, size_t nbytes ) { - unsigned char c; - - for ( ; nbytes >= 4; nbytes -= 4, buf += 4 ) { + unsigned char c; + + c = buf[0]; buf[0] = buf[3]; buf[3] = c; |