summaryrefslogtreecommitdiff
path: root/sql/my_decimal.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-11-03 14:49:17 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-11-03 14:49:17 +0200
commit533a13af069d8c9e6c5f4e1a72851497185ade03 (patch)
tree4623752e0c114e582fbbc0afcc02b67dede26b50 /sql/my_decimal.h
parent4b3690b50433a169d9feed5dc45044a8934b5582 (diff)
parente6290a8270daf884f551230307225b358939bfab (diff)
downloadmariadb-git-533a13af069d8c9e6c5f4e1a72851497185ade03.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'sql/my_decimal.h')
-rw-r--r--sql/my_decimal.h6
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;