/[freetype]/freetype2/src/cid/cidload.c
ViewVC logotype

Diff of /freetype2/src/cid/cidload.c

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

revision 1.71 by werner, Thu Oct 14 11:33:03 2004 UTC revision 1.72 by freetype, Sun May 1 10:11:32 2005 UTC
# Line 536  Line 536 
536        }        }
537    
538        if ( ft_isdigit( *p ) )        if ( ft_isdigit( *p ) )
539          val = *p - '0';          val = (FT_Byte)(*p - '0');
540        else if ( *p >= 'a' && *p <= 'f' )        else if ( *p >= 'a' && *p <= 'f' )
541          val = *p - 'a';          val = (FT_Byte)(*p - 'a');
542        else if ( *p >= 'A' && *p <= 'F' )        else if ( *p >= 'A' && *p <= 'F' )
543          val = *p - 'A' + 10;          val = (FT_Byte)(*p - 'A' + 10);
544        else if ( *p == ' '  ||        else if ( *p == ' '  ||
545                  *p == '\t' ||                  *p == '\t' ||
546                  *p == '\r' ||                  *p == '\r' ||
# Line 563  Line 563 
563        }        }
564    
565        if ( upper_nibble )        if ( upper_nibble )
566          *d = val << 4;          *d = (FT_Byte)(val << 4);
567        else        else
568        {        {
569          *d += val;          *d = (FT_Byte)(*d + val);
570          d++;          d++;
571        }        }
572    
573        upper_nibble = 1 - upper_nibble;        upper_nibble = (FT_Byte)(1 - upper_nibble);
574    
575        if ( done )        if ( done )
576          break;          break;

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

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