From 40edf5bc6e3e8827239ccd527d877e932a4ca8d0 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 1 Nov 2004 14:47:18 +0100 Subject: [PATCH] yet another s/>/>=/ typo --- strings/decimal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/strings/decimal.c b/strings/decimal.c index 4ecabe01e9d..50e84d105c5 100644 --- a/strings/decimal.c +++ b/strings/decimal.c @@ -1318,7 +1318,7 @@ static int do_div_mod(decimal *from1, decimal *from2, if ((scale_incr-= frac1 - from1->frac + frac2 - from2->frac) < 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; else intg0=ROUND_UP(i); @@ -1942,6 +1942,7 @@ main() test_dv("0", "987"); test_dv("1", "3"); test_dv("1.000000000000", "3"); + test_dv("1", "1"); printf("==== decimal_round ====\n"); test_ro("15.1",0,HALF_UP);