diff options
author | unknown <gkodinov/kgeorge@mysql.com/macbook.gmz> | 2006-07-07 17:27:11 +0300 |
---|---|---|
committer | unknown <gkodinov/kgeorge@mysql.com/macbook.gmz> | 2006-07-07 17:27:11 +0300 |
commit | a8fd83d676a5d8a64921f1f13ba4fa4f45221da8 (patch) | |
tree | 6ef1771c110fea4e9062604563ec8829e1eaac2a /strings | |
parent | 41c7aece39b73635339ed8b50360d354858ce1fa (diff) | |
download | mariadb-git-a8fd83d676a5d8a64921f1f13ba4fa4f45221da8.tar.gz |
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
Diffstat (limited to 'strings')
-rw-r--r-- | strings/decimal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/decimal.c b/strings/decimal.c index ecd92a54cc9..5a0bc0968b6 100644 --- a/strings/decimal.c +++ b/strings/decimal.c @@ -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; \ |