This commit is contained in:
Christian Grothoff 2020-01-20 01:40:29 +01:00
parent e090d69cb0
commit b290ca30c0
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 3 additions and 2 deletions

View File

@ -1098,7 +1098,7 @@ main (int argc,
if (NULL != input_filename) if (NULL != input_filename)
{ {
if (-1 != fh) if (-1 != fh)
close (fh); GNUNET_break (0 == close (fh));
ret = run_single_request (); ret = run_single_request ();
} }
else else

View File

@ -686,7 +686,8 @@ TALER_amount_divide (struct TALER_Amount *result,
modr = (modr * TALER_AMOUNT_FRAC_BASE) + result->fraction; modr = (modr * TALER_AMOUNT_FRAC_BASE) + result->fraction;
result->fraction = (uint32_t) (modr / divisor); result->fraction = (uint32_t) (modr / divisor);
/* 'fraction' could now be larger than #TALER_AMOUNT_FRAC_BASE, so we must normalize */ /* '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));
} }