Commit 9bda96c5 authored by serg@serg.mylan's avatar serg@serg.mylan

yet another s/>/>=/ typo

parent bc76b823
...@@ -1318,7 +1318,7 @@ static int do_div_mod(decimal *from1, decimal *from2, ...@@ -1318,7 +1318,7 @@ static int do_div_mod(decimal *from1, decimal *from2,
if ((scale_incr-= frac1 - from1->frac + frac2 - from2->frac) < 0) if ((scale_incr-= frac1 - from1->frac + frac2 - from2->frac) < 0)
scale_incr=0; scale_incr=0;
if ((i=(prec1-frac1)-(prec2-frac2)+(*buf1 > *buf2)) < 0) /* see below */ if ((i=(prec1-frac1)-(prec2-frac2)+(*buf1 >= *buf2)) < 0) /* see below */
intg0=0; intg0=0;
else else
intg0=ROUND_UP(i); intg0=ROUND_UP(i);
...@@ -1942,6 +1942,7 @@ main() ...@@ -1942,6 +1942,7 @@ main()
test_dv("0", "987"); test_dv("0", "987");
test_dv("1", "3"); test_dv("1", "3");
test_dv("1.000000000000", "3"); test_dv("1.000000000000", "3");
test_dv("1", "1");
printf("==== decimal_round ====\n"); printf("==== decimal_round ====\n");
test_ro("15.1",0,HALF_UP); test_ro("15.1",0,HALF_UP);
......
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