commit 87da543ebe1616cae475751bd9245a309022405e parent 10f76004eca8b6dc7db118022759e722e121b4ee Author: Christian Grothoff <grothoff@gnunet.org> Date: Thu, 29 Jan 2026 16:13:16 +0900 fix type confusion Diffstat:
| M | src/backend/taler-merchant-httpd_post-using-templates.c | | | 9 | +++++++-- |
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-using-templates.c b/src/backend/taler-merchant-httpd_post-using-templates.c @@ -1574,7 +1574,9 @@ create_using_templates_inventory (struct UseContext *uc) inventory_products = json_array (); GNUNET_assert (NULL != inventory_products); - for (size_t i = 0; i < uc->parse_request.inventory.items_len; i++) + for (unsigned int i = 0; + i < uc->parse_request.inventory.items_len; + i++) { const struct InventoryTemplateItemContext *item = &uc->parse_request.inventory.items[i]; @@ -1590,7 +1592,9 @@ create_using_templates_inventory (struct UseContext *uc) } choices = json_array (); GNUNET_assert (NULL != choices); - for (size_t i = 0; i < uc->compute_price.totals_len; i++) + for (unsigned int i = 0; + i < uc->compute_price.totals_len; + i++) { GNUNET_assert (0 == json_array_append_new ( @@ -1721,6 +1725,7 @@ TMH_post_using_templates_ID ( { struct UseContext *uc = hc->ctx; + (void) rh; if (NULL == uc) { uc = GNUNET_new (struct UseContext);