exchange

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

commit 6b609f35249702206dc5d34e0adb81f355eddcdb
parent 63a91cc8f35e8254bf5c29c5452039605e708dc5
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Thu,  1 May 2025 15:02:14 +0200

use GNUNET_static_assert

Diffstat:
Msrc/exchange/taler-exchange-httpd_melt_v27.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_melt_v27.c b/src/exchange/taler-exchange-httpd_melt_v27.c @@ -423,7 +423,7 @@ phase_parse_request ( } /* validate array size */ - _Static_assert ( + GNUNET_static_assert ( TALER_MAX_COINS < INT_MAX / TALER_CNC_KAPPA, "TALER_MAX_COINS too large"); @@ -1108,7 +1108,7 @@ phase_prepare_transaction ( uint8_t bit = sig->blinded_sig->details.blinded_cs_answer.b; mc->request.refresh.cs_r_choices |= bit << i; - _Static_assert ( + GNUNET_static_assert ( TALER_MAX_COINS <= sizeof(mc->request.refresh.cs_r_choices) * 8, "TALER_MAX_COINS too large");