summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2006-02-23 14:50:13 +0000
committerDavid Turner <david@freetype.org>2006-02-23 14:50:13 +0000
commitb698eedaa97089ecb018f360998923b584d3e9ee (patch)
tree267199993cce914529292f34ecd48a298e0de61b
parent481838e2347b9bd7e3a5f580eb6afa967e0c92f6 (diff)
downloadfreetype2-b698eedaa97089ecb018f360998923b584d3e9ee.tar.gz
fixed typo that prevented compilationVER-2-2-0-RC2
-rw-r--r--src/bdf/bdflib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bdf/bdflib.c b/src/bdf/bdflib.c
index 70cf75518..167acb23b 100644
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -1563,7 +1563,7 @@
/* Check that the encoding is in the range [0,65536] because */
/* otherwise p->have (a bitmap with static size) overflows. */
- if ( p->glyph_enc >= sizeof(p->have)*8 )
+ if ( (size_t)p->glyph_enc >= sizeof(p->have)*8 )
{
error = BDF_Err_Invalid_File_Format;
goto Exit;
@@ -1674,7 +1674,7 @@
nibbles = glyph->bpr << 1;
bp = glyph->bitmap + p->row * glyph->bpr;
- for ( i = 0, i < nibbles; i++ )
+ for ( i = 0; i < nibbles; i++ )
{
c = line[i];
*bp = (FT_Byte)( ( *bp << 4 ) + a2i[c] );