* src/type42/t32drivr.c: removing compiler warnings
This commit is contained in:
parent
9e883cf668
commit
18914a4f50
|
@ -1,5 +1,7 @@
|
||||||
2002-05-21 David Turner <david@freetype.org>
|
2002-05-21 David Turner <david@freetype.org>
|
||||||
|
|
||||||
|
* src/type42/t32drivr.c: removing compiler warnings
|
||||||
|
|
||||||
* include/freetype/internal/ftbdf.h, src/base/ftbdf.c,
|
* include/freetype/internal/ftbdf.h, src/base/ftbdf.c,
|
||||||
src/base/descrip.mms, src/base/Jamfile, src/base/rules.mk:
|
src/base/descrip.mms, src/base/Jamfile, src/base/rules.mk:
|
||||||
|
|
||||||
|
|
8
README
8
README
|
@ -10,7 +10,7 @@
|
||||||
is called `libttf'. They are *not* compatible!
|
is called `libttf'. They are *not* compatible!
|
||||||
|
|
||||||
|
|
||||||
FreeType 2.1.0
|
FreeType 2.1.1
|
||||||
==============
|
==============
|
||||||
|
|
||||||
Please read the docs/CHANGES file, it contains IMPORTANT
|
Please read the docs/CHANGES file, it contains IMPORTANT
|
||||||
|
@ -22,9 +22,9 @@
|
||||||
Note that the FreeType 2 documentation is now available as a
|
Note that the FreeType 2 documentation is now available as a
|
||||||
separate package from our sites. See:
|
separate package from our sites. See:
|
||||||
|
|
||||||
ftp://ftp.freetype.org/pub/freetype2/ftdocs-2.1.0.tar.bz2
|
ftp://ftp.freetype.org/pub/freetype2/ftdocs-2.1.1.tar.bz2
|
||||||
ftp://ftp.freetype.org/pub/freetype2/ftdocs-2.1.0.tar.gz
|
ftp://ftp.freetype.org/pub/freetype2/ftdocs-2.1.1.tar.gz
|
||||||
ftp://ftp.freetype.org/pub/freetype2/ftdoc210.zip
|
ftp://ftp.freetype.org/pub/freetype2/ftdoc211.zip
|
||||||
|
|
||||||
|
|
||||||
Reports
|
Reports
|
||||||
|
|
|
@ -579,17 +579,33 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static FT_Byte
|
static FT_UInt
|
||||||
hexval( FT_Byte v )
|
hexval( FT_Byte v )
|
||||||
{
|
{
|
||||||
if ( v >= 'A' && v <= 'F' )
|
FT_UInt d;
|
||||||
return v - 'A' + 10;
|
|
||||||
if ( v >= 'a' && v <= 'f' )
|
d = (FT_UInt)( v - 'A' );
|
||||||
return v - 'a' + 10;
|
if ( d < 6 )
|
||||||
if ( v >= '0' && v <= '9' )
|
{
|
||||||
return v - '0';
|
d += 10;
|
||||||
|
goto Exit;
|
||||||
return 0;
|
}
|
||||||
|
|
||||||
|
d = (FT_UInt)( v - 'A' );
|
||||||
|
if ( d < 6 )
|
||||||
|
{
|
||||||
|
d += 10;
|
||||||
|
goto Exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
d = (FT_UInt)( v - '0' );
|
||||||
|
if ( d < 10 )
|
||||||
|
goto Exit;
|
||||||
|
|
||||||
|
d = 0;
|
||||||
|
|
||||||
|
Exit:
|
||||||
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -681,7 +697,7 @@
|
||||||
goto Fail;
|
goto Fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
v = 16 * hexval( *cur++ ) + hexval( *cur++ );
|
v = (FT_Byte)( 16 * hexval( *cur++ ) + hexval( *cur++ ) );
|
||||||
string_size++;
|
string_size++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue