Skip to content

Commit

Permalink
Adding "const" qualifier to the argument of decimal_actual_fraction().
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Barkov committed Jan 14, 2016
1 parent 5b9ee3f commit 98b6026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/decimal.h
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion strings/decimal.c
Expand Up @@ -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;
Expand Down

0 comments on commit 98b6026

Please sign in to comment.