summaryrefslogtreecommitdiff
path: root/strings/decimal.c
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2016-01-14 17:23:23 +0400
committerAlexander Barkov <bar@mariadb.org>2016-01-14 17:23:23 +0400
commit98b6026036913bed65b6e121c86580ebd92bd715 (patch)
tree21efcd770f53cb2cc20b531caa47e83184325f80 /strings/decimal.c
parent5b9ee3f2ae4e32a05aaae5c702110bd0cdb94271 (diff)
downloadmariadb-git-98b6026036913bed65b6e121c86580ebd92bd715.tar.gz
Adding "const" qualifier to the argument of decimal_actual_fraction().
Diffstat (limited to 'strings/decimal.c')
-rw-r--r--strings/decimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/decimal.c b/strings/decimal.c
index 2353a8aefce..74d456c9c9f 100644
--- a/strings/decimal.c
+++ b/strings/decimal.c
@@ -283,7 +283,7 @@ static dec1 *remove_leading_zeroes(const decimal_t *from, int *intg_result)
from number for processing
*/
-int decimal_actual_fraction(decimal_t *from)
+int decimal_actual_fraction(const decimal_t *from)
{
int frac= from->frac, i;
dec1 *buf0= from->buf + ROUND_UP(from->intg) + ROUND_UP(frac) - 1;