exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 5e0ff70928f91656c7c5ced0317426c8e7e30070
parent 2b95de5a1401fdb921cb77733d4989cacaec4dac
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 13 Oct 2026 00:12:25 +0200

equals is still allowed

Diffstat:
Msrc/pq/pq_result_helper.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c @@ -134,7 +134,7 @@ extract_amount_currency_tuple (void *cls, } } - if (r_amount->value >= TALER_AMOUNT_MAX_VALUE) + if (r_amount->value > TALER_AMOUNT_MAX_VALUE) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Value in field `%s' exceeds legal range\n", @@ -279,7 +279,7 @@ extract_amount_tuple (void *cls, r_amount->fraction = ntohl (ap.f); } - if (r_amount->value >= TALER_AMOUNT_MAX_VALUE) + if (r_amount->value > TALER_AMOUNT_MAX_VALUE) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Value in field `%s' exceeds legal range\n", @@ -1290,7 +1290,7 @@ extract_array_generic ( info->currency, TALER_CURRENCY_LEN); - FAIL_IF (amount->value >= TALER_AMOUNT_MAX_VALUE); + FAIL_IF (amount->value > TALER_AMOUNT_MAX_VALUE); FAIL_IF (amount->fraction >= TALER_AMOUNT_FRAC_BASE); in += sizeof(struct TALER_PQ_AmountP); @@ -1341,7 +1341,7 @@ extract_array_generic ( TALER_CURRENCY_LEN); FAIL_IF ('\0' != amount->currency[TALER_CURRENCY_LEN - 1]); - FAIL_IF (amount->value >= TALER_AMOUNT_MAX_VALUE); + FAIL_IF (amount->value > TALER_AMOUNT_MAX_VALUE); FAIL_IF (amount->fraction >= TALER_AMOUNT_FRAC_BASE); in += sz;