diff options
Diffstat (limited to 'strings/decimal.c')
-rw-r--r-- | strings/decimal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/strings/decimal.c b/strings/decimal.c index da47727bd9c..2353a8aefce 100644 --- a/strings/decimal.c +++ b/strings/decimal.c @@ -383,6 +383,7 @@ int decimal2string(const decimal_t *from, char *to, int *to_len, } else frac-=j; + frac_len= frac; len= from->sign + intg_len + MY_TEST(frac) + frac_len; } *to_len=len; |