gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: -fix assertions


From: gnunet
Subject: [taler-merchant] branch master updated: -fix assertions
Date: Mon, 29 Jan 2024 11:10:37 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 6e80643e -fix assertions
6e80643e is described below

commit 6e80643e5b3295d964f3443514caefa0bb47e835
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jan 29 11:10:32 2024 +0100

    -fix assertions
---
 doc/prebuilt                                             |  2 +-
 src/backend/taler-merchant-httpd_private-get-orders-ID.c | 12 +++++-------
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/doc/prebuilt b/doc/prebuilt
index bd40be2f..5e7026c5 160000
--- a/doc/prebuilt
+++ b/doc/prebuilt
@@ -1 +1 @@
-Subproject commit bd40be2fd4ce80106dc40a5ac4cc5c1695134063
+Subproject commit 5e7026c5cef101c90b6dc58096e0a0946ef11b08
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,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]