diff --git a/src/search/regex.c b/src/search/regex.c index b149a3ebb..204886117 100644 --- a/src/search/regex.c +++ b/src/search/regex.c @@ -428,7 +428,7 @@ mc_search_regex__process_append_str (GString * dest_str, const char *from, gsize char *tmp_str; GString *tmp_string; - if (len == -1) + if (len == (gsize) -1) len = strlen (from); if (*replace_flags == REPLACE_T_NO_TRANSFORM) {