From eca825f2a3e7d307131daaf677d75f64b985359c Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Tue, 4 Feb 2025 11:42:13 +0100 Subject: [PATCH] fix: wconversion errors --- examples/unix/c11/z_querier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/unix/c11/z_querier.c b/examples/unix/c11/z_querier.c index 594fd6c3c..c4a4de4c4 100644 --- a/examples/unix/c11/z_querier.c +++ b/examples/unix/c11/z_querier.c @@ -108,7 +108,7 @@ int main(int argc, char **argv) { size_t ke_len = strlen(ke); const char *params = strchr(selector, '?'); if (params != NULL) { - ke_len = params - ke; + ke_len = (size_t)(params - ke); params += 1; } @@ -123,7 +123,7 @@ int main(int argc, char **argv) { z_querier_options_t opts; z_querier_options_default(&opts); - opts.timeout_ms = timeout_ms; + opts.timeout_ms = (uint64_t)timeout_ms; if (z_declare_querier(z_loan(s), &querier, z_loan(keyexpr), &opts) < 0) { printf("Unable to declare Querier for key expression!\n");