diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-01-29 11:10:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-01-29 11:10:32 +0100 |
commit | 6e80643e5b3295d964f3443514caefa0bb47e835 (patch) | |
tree | 1d3058d6eff9cfd80f410b6db2c237d4c6f83d0e | |
parent | 39678f88d5a1270f723a79986bf197a33e7d0424 (diff) |
-fix assertions
m--------- | doc/prebuilt | 0 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-orders-ID.c | 12 |
2 files changed, 5 insertions, 7 deletions
diff --git a/doc/prebuilt b/doc/prebuilt -Subproject bd40be2fd4ce80106dc40a5ac4cc5c169513406 +Subproject 5e7026c5cef101c90b6dc58096e0a0946ef11b0 diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c index c121ae14..b5810174 100644 --- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c +++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c @@ -1216,19 +1216,17 @@ process_transfer_details ( } /* Compute total amount *wired* */ - GNUNET_assert (0 < + GNUNET_assert (0 <= TALER_amount_add (&gorc->deposits_total, &gorc->deposits_total, deposit_value)); - GNUNET_assert (0 < + GNUNET_assert (0 <= TALER_amount_add (&gorc->deposit_fees_total, &gorc->deposit_fees_total, deposit_fee)); - - GNUNET_assert - (0 <= TALER_amount_subtract (&wired, - deposit_value, - deposit_fee)); + GNUNET_assert (0 <= TALER_amount_subtract (&wired, + deposit_value, + deposit_fee)); GNUNET_assert (0 == json_array_append_new ( wire_details, |