From c5d8d27b90bd8723f3b8e0c53984a865e69f4279 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 6 Apr 2022 08:54:01 +0300 Subject: [PATCH] ci: fix -cstrict failures for vweb_test.v etc. --- vlib/v/gen/c/json.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/c/json.v b/vlib/v/gen/c/json.v index 7a59a74e19..5f909d6c75 100644 --- a/vlib/v/gen/c/json.v +++ b/vlib/v/gen/c/json.v @@ -73,7 +73,7 @@ $dec_fn_dec { if (!root) { const char *error_ptr = cJSON_GetErrorPtr(); if (error_ptr != NULL) { - const size_t error_pos = cJSON_GetErrorPos(); + const int error_pos = (int)cJSON_GetErrorPos(); int maxcontext_chars = 30; byte *buf = vcalloc_noscan(maxcontext_chars + 10); if(error_pos > 0) {