summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-20 01:40:29 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-20 01:40:29 +0100
commitb290ca30c0b7b7e10578cb82d25e39e2c7d7ee62 (patch)
treed71fc315f50a416877a2658c9614dbe02d3667fd /src/util
parente090d69cb0b7d1a4ce58256d500f3b29f84341f6 (diff)
downloadexchange-b290ca30c0b7b7e10578cb82d25e39e2c7d7ee62.tar.gz
exchange-b290ca30c0b7b7e10578cb82d25e39e2c7d7ee62.tar.bz2
exchange-b290ca30c0b7b7e10578cb82d25e39e2c7d7ee62.zip
fix
Diffstat (limited to 'src/util')
-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 c15eeaaf..e50d9ad1 100644
--- a/src/util/amount.c
+++ b/src/util/amount.c
@@ -686,7 +686,8 @@ TALER_amount_divide (struct TALER_Amount *result,
modr = (modr * TALER_AMOUNT_FRAC_BASE) + result->fraction;
result->fraction = (uint32_t) (modr / divisor);
/* 'fraction' could now be larger than #TALER_AMOUNT_FRAC_BASE, so we must normalize */
- TALER_amount_normalize (result);
+ GNUNET_assert (GNUNET_SYSERR !=
+ TALER_amount_normalize (result));
}