Commit 3ba5e604 authored by serg@serg.mylan's avatar serg@serg.mylan

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

into serg.mylan:/usr/home/serg/Abk/mysql-5.0
parents 684d722b 16c5f3c5
...@@ -1362,6 +1362,7 @@ static int do_div_mod(decimal *from1, decimal *from2, ...@@ -1362,6 +1362,7 @@ static int do_div_mod(decimal *from1, decimal *from2,
*buf0++=0; *buf0++=0;
len1=(i=ROUND_UP(prec1))+ROUND_UP(2*frac2+scale_incr+1); len1=(i=ROUND_UP(prec1))+ROUND_UP(2*frac2+scale_incr+1);
set_if_bigger(len1, 3);
if (!(tmp1=my_alloca(len1*sizeof(dec1)))) if (!(tmp1=my_alloca(len1*sizeof(dec1))))
return E_DEC_OOM; return E_DEC_OOM;
memcpy(tmp1, buf1, i*sizeof(dec1)); memcpy(tmp1, buf1, i*sizeof(dec1));
......
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