Commit 72f6b9237162404e8a687827b38bbffab04c02e0

henry 2003-07-16T10:17:36

Made a constant a float

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/FTFace.cpp b/src/FTFace.cpp
index a32c108..88ee8bd 100755
--- a/src/FTFace.cpp
+++ b/src/FTFace.cpp
@@ -117,8 +117,8 @@ FTPoint FTFace::KernAdvance( unsigned int index1, unsigned int index2)
         err = FT_Get_Kerning( *ftFace, index1, index2, ft_kerning_unfitted, &kernAdvance);
         if( !err)
         {   
-            x = static_cast<float>( kernAdvance.x) / 64;
-            y = static_cast<float>( kernAdvance.y) / 64;
+            x = static_cast<float>( kernAdvance.x) / 64.0f;
+            y = static_cast<float>( kernAdvance.y) / 64.0f;
         }
     }