aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-18 14:01:56 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-18 14:01:56 +0100
commit96ac20c3bbcf5536f46720212eb1f1b7775dacbf (patch)
tree0f0c652d63aa673ac2efaee367b07b9480e6bcf1 /src
parentef4cb1b7c96352a3cff782d20e53b1ee415fa976 (diff)
fix FTBFS
Diffstat (limited to 'src')
-rw-r--r--src/util/amount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/amount.c b/src/util/amount.c
index c432caeeb..55ddc13a9 100644
--- a/src/util/amount.c
+++ b/src/util/amount.c
@@ -549,8 +549,9 @@ amount_to_tail (const struct TALER_Amount *amount,
char tail[TALER_AMOUNT_FRAC_LEN + 1])
{
uint32_t n = amount->fraction;
+ unsigned int i;
- for (unsigned int i = 0; (i < TALER_AMOUNT_FRAC_LEN) && (0 != n); i++)
+ for (i = 0; (i < TALER_AMOUNT_FRAC_LEN) && (0 != n); i++)
{
tail[i] = '0' + (n / (TALER_AMOUNT_FRAC_BASE / 10));
n = (n * 10) % (TALER_AMOUNT_FRAC_BASE);