diff options
author | unknown <serg@serg.mylan> | 2004-11-28 16:58:05 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-11-28 16:58:05 +0100 |
commit | d2c7736c59403d8df8029773c3ea70202b27946b (patch) | |
tree | e2f2104c5f3892c0c587c49a0ff53f6eec0f5e15 /strings | |
parent | 30db8445c10b0ae44077f1b2739a3bb07b4735a4 (diff) | |
download | mariadb-git-d2c7736c59403d8df8029773c3ea70202b27946b.tar.gz |
fix for decimal.c
strings/decimal.c:
fix
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 6e607aaa173..b88be6116a6 100644 --- a/strings/decimal.c +++ b/strings/decimal.c @@ -873,7 +873,7 @@ int decimal_round(decimal *from, decimal *to, int scale, decimal_round_mode mode error=E_DEC_TRUNCATED; } - if (scale+from->intg <0) + if (scale+from->intg <= 0) { decimal_make_zero(to); return E_DEC_OK; |