./src/share/native/sun/font/freetypeScaler.c

Print this page
rev 2713 : Corrected type cast.

@@ -977,11 +977,11 @@
 
     return FT_Get_Char_Index(scalerInfo->face, charCode);
 }
 
 
-#define FloatToF26Dot6(x) ((unsigned int) ((x)*64))
+#define FloatToF26Dot6(x) ((int) ((x)*64))
 
 static FT_Outline* getFTOutline(JNIEnv* env, jobject font2D,
         FTScalerContext *context, FTScalerInfo* scalerInfo,
         jint glyphCode, jfloat xpos, jfloat ypos) {
     int renderFlags;