/[freetype]/freetype2/src/bdf/bdflib.c
ViewVC logotype

Diff of /freetype2/src/bdf/bdflib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by freetype, Tue Mar 15 18:18:57 2005 UTC revision 1.21 by freetype, Tue Mar 15 23:48:15 2005 UTC
# Line 415  Line 415 
415    {    {
416      FT_Error  error = 0;      FT_Error  error = 0;
417    
418      if ( num_items > list->size )      if ( num_items > (int)list->size )
419      {      {
420        int  oldsize = list->size;        int  oldsize = list->size;
421        int  newsize = oldsize + (oldsize >> 1) + 4;        int  newsize = oldsize + (oldsize >> 1) + 4;
# Line 637  Line 637 
637      cursor     = 0;      cursor     = 0;
638      refill     = 1;      refill     = 1;
639      to_skip    = NO_SKIP;      to_skip    = NO_SKIP;
640        bytes      = 0;  /* make compiler happy */
641    
642      for (;;)      for (;;)
643      {      {
644        if ( refill )        if ( refill )
645        {        {
646          bytes = (int) FT_Stream_TryRead( stream, buf + cursor,          bytes = (int) FT_Stream_TryRead( stream, (FT_Byte*)buf + cursor,
647                                           (FT_ULong)(buf_size - cursor) );                                           (FT_ULong)(buf_size - cursor) );
648          avail  = cursor + bytes;          avail  = cursor + bytes;
649          cursor = 0;          cursor = 0;

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26