commit dc946b5b6588fdbbec9770f3ab3ec647f7745368
parent 0c03f89cbcb04016d04934b81ae2125de8e0c11d
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 22 Dec 2025 23:26:19 +0100
-fix build issue on ARM
Diffstat:
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_melt.c b/src/exchange/taler-exchange-httpd_melt.c
@@ -631,6 +631,7 @@ phase_parse_request (
{
json_t *j_ktp;
size_t kappa;
+ size_t max_idx;
json_array_foreach (j_transfer_pubs, kappa, j_ktp)
{
@@ -656,7 +657,8 @@ phase_parse_request (
TALER_JSON_spec_array_fixed (NULL,
mc->request.refresh.num_coins,
mc->request.transfer_pubs[kappa],
- sizeof(*mc->request.transfer_pubs[kappa])),
+ sizeof(*mc->request.transfer_pubs[kappa])
+ ),
GNUNET_JSON_spec_end ()
};
@@ -677,7 +679,7 @@ phase_parse_request (
* the client side that is harmless for us, but still
* not allowed per protocol
*/
- size_t max_idx = TALER_CNC_KAPPA * mc->request.refresh.num_coins;
+ max_idx = TALER_CNC_KAPPA * mc->request.refresh.num_coins;
for (size_t I = 0; I < max_idx - 1; I++)
{
diff --git a/src/include/taler/taler_exchangedb_plugin.h b/src/include/taler/taler_exchangedb_plugin.h
@@ -567,7 +567,7 @@ struct TALER_EXCHANGEDB_TableData
size_t num_cs_r_values;
struct GNUNET_CRYPTO_CSPublicRPairP *cs_r_values;
uint64_t cs_r_choices;
- uint64_t num_coins;
+ size_t num_coins;
uint64_t *denom_serials;
struct TALER_BlindedDenominationSignature *denom_sigs;
} refresh;
@@ -836,7 +836,7 @@ struct TALER_EXCHANGEDB_TableData
struct TALER_HashBlindedPlanchetsP selected_h;
bool no_blinding_seed;
struct TALER_BlindingMasterSeedP blinding_seed;
- uint64_t num_cs_r_values;
+ size_t num_cs_r_values;
struct GNUNET_CRYPTO_CSPublicRPairP *cs_r_values;
uint64_t cs_r_choices;
size_t num_coins;