projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c070855
)
[WIN32K]
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Sat, 27 Sep 2014 12:06:03 +0000
(12:06 +0000)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Sat, 27 Sep 2014 12:06:03 +0000
(12:06 +0000)
Fix _FLOATOBJ_IsLong (0 - lMant == 0 / lExp == 0 - was not evaluated as TRUE)
svn path=/trunk/; revision=64338
reactos/win32ss/gdi/eng/floatobj.h
patch
|
blob
|
history
diff --git
a/reactos/win32ss/gdi/eng/floatobj.h
b/reactos/win32ss/gdi/eng/floatobj.h
index
8101c5f
..
a3e9a8a
100644
(file)
--- a/
reactos/win32ss/gdi/eng/floatobj.h
+++ b/
reactos/win32ss/gdi/eng/floatobj.h
@@
-33,9
+33,11
@@
BOOL
_FLOATOBJ_IsLong(FLOATOBJ *pf)
{
EFLOAT_S *pef = (EFLOAT_S*)pf;
- ULONG Shift = 32 - pef->lExp;
- if (Shift > 31) return FALSE;
- return (((pef->lMant >> Shift) << Shift) == pef->lMant);
+ ULONG ulShift = pef->lExp;
+ if (ulShift < 32)
+ return ((pef->lMant << ulShift) == 0);
+ else
+ return (ulShift == 32);
}
FORCEINLINE