mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
Fix a scaling error in VarR4FromDec() and VarR8FromDec() that
incorrectly multiplies the high 32 bits of the DECIMAL by 1e64 instead of the correct 2^64.
This commit is contained in:
parent
0ec0f048e6
commit
680bf12aec
@ -2962,7 +2962,8 @@ HRESULT WINAPI VarR4FromDec(DECIMAL* pDecIn, float *pFltOut)
|
||||
if (DEC_HI32(pDecIn))
|
||||
{
|
||||
highPart = (double)DEC_HI32(pDecIn) / (double)divisor;
|
||||
highPart *= 1.0e64;
|
||||
highPart *= 4294967296.0F;
|
||||
highPart *= 4294967296.0F;
|
||||
}
|
||||
else
|
||||
highPart = 0.0;
|
||||
@ -3281,7 +3282,8 @@ HRESULT WINAPI VarR8FromDec(DECIMAL* pDecIn, double *pDblOut)
|
||||
if (DEC_HI32(pDecIn))
|
||||
{
|
||||
highPart = (double)DEC_HI32(pDecIn) / divisor;
|
||||
highPart *= 1.0e64;
|
||||
highPart *= 4294967296.0F;
|
||||
highPart *= 4294967296.0F;
|
||||
}
|
||||
else
|
||||
highPart = 0.0;
|
||||
|
Loading…
Reference in New Issue
Block a user