Commit 115dd8e45cf8f7656bbc1a089a5266cc3b86ea70

henry 2001-11-01T20:07:15

Added brackets to clear Win32 warning

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/FTSize.cpp b/src/FTSize.cpp
index 31a76db..a3271b6 100755
--- a/src/FTSize.cpp
+++ b/src/FTSize.cpp
@@ -44,11 +44,11 @@ int FTSize::Height() const
 		float height;
 		if( FT_IS_SFNT((*ftFace))) // Don't think this is correct
 		{
-			height = (*ftFace)->bbox.yMax - (*ftFace)->bbox.yMin; // bbox.yMax-bbox.yMin
+			height = ((*ftFace)->bbox.yMax - (*ftFace)->bbox.yMin); // bbox.yMax-bbox.yMin
 		}
 		else
 		{
-			height = (*ftFace)->bbox.yMax - (*ftFace)->bbox.yMin >> 16; // bbox.yMax-bbox.yMin
+			height = ((*ftFace)->bbox.yMax - (*ftFace)->bbox.yMin) >> 16; // bbox.yMax-bbox.yMin
 		}
 
 		height =  height * ( (float)ftSize->metrics.y_ppem / (float)(*ftFace)->units_per_EM);