fix
This commit is contained in:
parent
e090d69cb0
commit
b290ca30c0
@ -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
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user