Stefan Dösinger : wined3d: Use a int for the mantissa in float_24_to_32.

Alexandre Julliard julliard at winehq.org
Thu Jul 29 12:08:41 CDT 2010


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Jul 28 15:06:38 2010 +0200

wined3d: Use a int for the mantissa in float_24_to_32.

---

 dlls/wined3d/wined3d_private.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 7e53c90..bc5757b 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -205,7 +205,7 @@ static inline float float_24_to_32(DWORD in)
 {
     const float sgn = in & 0x800000 ? -1.0f : 1.0f;
     const unsigned short e = (in & 0x780000) >> 19;
-    const unsigned short m = in & 0x7ffff;
+    const unsigned int m = in & 0x7ffff;
 
     if (e == 0)
     {




More information about the wine-cvs mailing list