From 95a5f6f087363f33cc020637d51745045a8d1310 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 13 Jan 2024 20:41:29 -0500 Subject: [PATCH] Fix compile warnings on 32-bit systems. --- tools/src/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/src/json.c b/tools/src/json.c index 899b81f..27e07ee 100644 --- a/tools/src/json.c +++ b/tools/src/json.c @@ -130,7 +130,7 @@ query(char *select, HashMap * json, int canonical) { size_t i; - if (sscanf(keyName + 1, "%lu", &i) == 1) + if (sscanf(keyName + 1, "%zu", &i) == 1) { JsonValueFree(ArrayDelete(JsonValueAsArray(val), i)); }