str_replace_str: ensure types match for comparison

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2020-03-12 18:36:19 +01:00
committed by Nikos Mavrogiannopoulos
parent bf8616cbca
commit 449e608f86

View File

@@ -174,7 +174,8 @@ int str_replace_str(str_st *str, const str_rep_tab *tab)
unsigned length;
char *final;
unsigned final_len;
int ret, pos;
int ret;
size_t pos;
p = str->data;
pos = 0;