Implicit Type Conversion Fix

1. Typecast the return of strlen() to int for the variable used.
This commit is contained in:
John Safranek
2023-06-09 11:13:44 -07:00
parent a56070cd70
commit 7b0283fa04

View File

@ -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];