Commit a8fd83d6 authored by unknown's avatar unknown

Bug #20569 Garbage in DECIMAL results from some mathematical functions

 * portability fix: moved the macro call after the C declaration


strings/decimal.c:
  Bug #20569 Garbage in DECIMAL results from some mathematical functions
   * moved the macro call after the C declaration
parent 41c7aece
......@@ -170,8 +170,8 @@ static const dec1 frac_max[DIG_PER_DEC1-1]={
#define ADD(to, from1, from2, carry) /* assume carry <= 1 */ \
do \
{ \
DBUG_ASSERT((carry) <= 1); \
dec1 a=(from1)+(from2)+(carry); \
DBUG_ASSERT((carry) <= 1); \
if (((carry)= a >= DIG_BASE)) /* no division here! */ \
a-=DIG_BASE; \
(to)=a; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment