From 7b0283fa04a61d60cc1f67593327776c93d64b6f Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 9 Jun 2023 11:13:44 -0700 Subject: [PATCH] Implicit Type Conversion Fix 1. Typecast the return of strlen() to int for the variable used. --- tests/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 74099289b..1511438da 100644 --- a/tests/api.c +++ b/tests/api.c @@ -66573,7 +66573,7 @@ static byte* test_find_string(const char *string, { int string_size, i; - string_size = XSTRLEN(string); + string_size = (int)XSTRLEN(string); for (i = 0; i < buf_size - string_size - 1; i++) { if (XSTRCMP((char*)&buf[i], string) == 0) return &buf[i];