diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2020-10-31 21:06:49 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2020-10-31 21:06:49 +0100 |
commit | 80c951ce2875aac521b82323b5b6ebf638593445 (patch) | |
tree | df22c24e1fbe48362bd0eed50ec0c164e6c7e674 /sql/my_decimal.h | |
parent | 1fddccf676e213f94923f5efaaa76d9793b19a89 (diff) | |
parent | 794f66513967891520ec432123dcff8270871b93 (diff) | |
download | mariadb-git-80c951ce2875aac521b82323b5b6ebf638593445.tar.gz |
Merge branch '10.3' into 10.4
Diffstat (limited to 'sql/my_decimal.h')
-rw-r--r-- | sql/my_decimal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/my_decimal.h b/sql/my_decimal.h index a7f6fc9e88d..9b1aebb98b5 100644 --- a/sql/my_decimal.h +++ b/sql/my_decimal.h @@ -207,15 +207,15 @@ public: { return to_string(to, 0, 0, 0); } - String *to_string_round(String *to, uint scale, my_decimal *round_buff) const + String *to_string_round(String *to, int scale, my_decimal *round_buff) const { (void) round_to(round_buff, scale, HALF_UP); // QQ: check result? return round_buff->to_string(to); } - int round_to(my_decimal *to, uint scale, decimal_round_mode mode, + int round_to(my_decimal *to, int scale, decimal_round_mode mode, int mask= E_DEC_FATAL_ERROR) const { - return check_result(mask, decimal_round(this, to, (int) scale, mode)); + return check_result(mask, decimal_round(this, to, scale, mode)); } int to_binary(uchar *bin, int prec, int scale, uint mask= E_DEC_FATAL_ERROR) const; |