OLEAUT32: multiplication/division support for DECIMAL (patch 1 of 4)

Alexandre Julliard julliard at winehq.org
Wed Oct 26 10:26:27 CDT 2005

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.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list