mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 11:04:52 +00:00
[WIN32K]
Fix _FLOATOBJ_IsLong (0 - lMant == 0 / lExp == 0 - was not evaluated as TRUE) svn path=/trunk/; revision=64338
This commit is contained in:
parent
c070855199
commit
ae406918bb
1 changed files with 5 additions and 3 deletions
|
@ -33,9 +33,11 @@ BOOL
|
||||||
_FLOATOBJ_IsLong(FLOATOBJ *pf)
|
_FLOATOBJ_IsLong(FLOATOBJ *pf)
|
||||||
{
|
{
|
||||||
EFLOAT_S *pef = (EFLOAT_S*)pf;
|
EFLOAT_S *pef = (EFLOAT_S*)pf;
|
||||||
ULONG Shift = 32 - pef->lExp;
|
ULONG ulShift = pef->lExp;
|
||||||
if (Shift > 31) return FALSE;
|
if (ulShift < 32)
|
||||||
return (((pef->lMant >> Shift) << Shift) == pef->lMant);
|
return ((pef->lMant << ulShift) == 0);
|
||||||
|
else
|
||||||
|
return (ulShift == 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
|
|
Loading…
Reference in a new issue