Commit 58a318cb authored by unknown's avatar unknown

Merge bk-internal:/home/bk/mysql-5.0/

into serg.mylan:/usr/home/serg/Abk/mysql-5.0
parents 5c1a515b a8481278
...@@ -1060,6 +1060,10 @@ static int do_sub(decimal *from1, decimal *from2, decimal *to) ...@@ -1060,6 +1060,10 @@ static int do_sub(decimal *from1, decimal *from2, decimal *to)
carry=1; carry=1;
else if (intg2 == intg1) else if (intg2 == intg1)
{ {
while (unlikely(stop1[frac1-1] == 0))
frac1--;
while (unlikely(stop2[frac2-1] == 0))
frac2--;
while (buf1 < stop1+frac1 && buf2 < stop2+frac2 && *buf1 == *buf2) while (buf1 < stop1+frac1 && buf2 < stop2+frac2 && *buf1 == *buf2)
buf1++, buf2++; buf1++, buf2++;
if (buf1 < stop1+frac1) if (buf1 < stop1+frac1)
......
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