freebsd-ports/java/jdk15/files/patch-awt_fontmanager_t2kScalerContext.cpp
Greg Lewis e551896df5 . Fix the build for gcc 3.4.
PR:		69853
Submitted by:	Jake Hamby <jhamby@anobject.com>
Approved by:	phantom (maintainer)
2004-08-12 21:54:01 +00:00

22 lines
882 B
C++

$FreeBSD$
--- ../../j2se/src/share/native/sun/awt/font/fontmanager/fontobjects/t2kScalerContext.cpp.orig Fri Jul 30 18:00:09 2004
+++ ../../j2se/src/share/native/sun/awt/font/fontmanager/fontobjects/t2kScalerContext.cpp Fri Jul 30 22:11:36 2004
@@ -937,14 +937,14 @@
CMAPMapper::CharsToGlyphs(
int count, const Unicode16 unicodes[], UInt32 glyphs[]) const
{
- ConvertUnicodeToGlyphs(*font, (unsigned char *)cmap, count, unicodes, glyphs);
+ ConvertUnicodeToGlyphs(*font, (byte*&)cmap, count, unicodes, glyphs);
}
void
CMAPMapper::CharsToGlyphs(
int count, const Unicode32 unicodes[], UInt32 glyphs[]) const
{
- ConvertUnicodeToGlyphs(*font, (unsigned char *)cmap, count, unicodes, glyphs);
+ ConvertUnicodeToGlyphs(*font, (byte*&)cmap, count, unicodes, glyphs);
}
//////////////////////////////////////////////////////////////////////////////