Skip to content
Permalink
Browse files

Adding "const" qualifier to the argument of decimal_actual_fraction().

  • Loading branch information...
abarkov committed Jan 14, 2016
1 parent 5b9ee3f commit 98b6026036913bed65b6e121c86580ebd92bd715
Showing with 2 additions and 2 deletions.
  1. +1 −1 include/decimal.h
  2. +1 −1 strings/decimal.c
@@ -51,7 +51,7 @@ int decimal2longlong(const decimal_t *from, longlong *to);
int longlong2decimal(longlong from, decimal_t *to);
int decimal2double(const decimal_t *from, double *to);
int double2decimal(double from, decimal_t *to);
int decimal_actual_fraction(decimal_t *from);
int decimal_actual_fraction(const decimal_t *from);
int decimal2bin(const decimal_t *from, uchar *to, int precision, int scale);
int bin2decimal(const uchar *from, decimal_t *to, int precision, int scale);

@@ -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;

0 comments on commit 98b6026

Please sign in to comment.
You can’t perform that action at this time.