fix ftbfs

This commit is contained in:
Christian Grothoff 2020-04-03 20:47:34 +02:00
parent 61cfaa5981
commit 02736e40c2
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -535,10 +535,9 @@ TALER_amount_normalize (struct TALER_Amount *amount)
return GNUNET_SYSERR;
if (amount->fraction < TALER_AMOUNT_FRAC_BASE)
return GNUNET_NO;
overflow = amount->fraction / TALER_AMOUT_FRAC_BASE;
overflow = amount->fraction / TALER_AMOUNT_FRAC_BASE;
amount->fraction %= TALER_AMOUNT_FRAC_BASE;
amount->value += overflow;
ret = GNUNET_OK;
if ( (amount->value < overflow) ||
(amount->value > MAX_AMOUNT_VALUE) )
{