Michael Stefaniuc : gdi32: Avoid using long when not needed.

Alexandre Julliard julliard at winehq.org
Tue Jun 2 08:44:33 CDT 2009


Module: wine
Branch: master
Commit: 0737fc2c72c904bd7d055f56168499f5916a97af
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0737fc2c72c904bd7d055f56168499f5916a97af

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Jun  2 10:16:38 2009 +0200

gdi32: Avoid using long when not needed.

---

 dlls/gdi32/freetype.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 60c5f21..ef93402 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -846,7 +846,7 @@ static inline FT_Fixed FT_FixedFromFloat(double f)
 */
 static inline FT_Fixed FT_FixedFromFIXED(FIXED f)
 {
-	return (FT_Fixed)((long)f.value << 16 | (unsigned long)f.fract);
+    return (FT_Fixed)((int)f.value << 16 | (unsigned int)f.fract);
 }
 
 




More information about the wine-cvs mailing list