OLEAUT32: multiplication/division support for DECIMAL (patch
1 of 4)
Alex Villacís Lasso
a_villacis at palosanto.com
Wed Oct 26 14:40:07 CDT 2005
Alexandre Julliard wrote:
>Alex Villacís Lasso <a_villacis at palosanto.com> writes:
>
>
>
>>+ /* this one shows that native oleaut32 is willing to lose significant digits in order to avert an overflow */
>>+ SETDEC(l,2,0,0,0xFFFFFFFFFFFFFFFFULL); SETDEC(r,0,0,0,40000000001ULL); MATH2(VarDecMul);EXPECTDEC(1,0,0xee6b2800,0x19999998ab2e719aULL);
>>
>>
>
>You should not use long long constants, that's not portable. Use
>SETDEC64 and EXPECTDEC64 instead.
>
>
>
This version of the patch should get rid of the long long constants.
Changelog:
* Add tests for functionality implemented or corrected in following
patches: multiplication, division, cast to double, cast to string
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-oleaut32-decimal_01_tests_try3.patch
Type: text/x-patch
Size: 13872 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051026/e4f9e621/wine-oleaut32-decimal_01_tests_try3.patch
More information about the wine-patches
mailing list