mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 02:56:09 +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)
|
||||
{
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue