From 551c1aed65817558ac1ece541c246ea585645807 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 3 May 2021 18:57:05 +0200 Subject: patch 8.2.2826: compiler warnings for int to size_t conversion Problem: Compiler warnings for int to size_t conversion. (Randall W. Morris) Solution: Add type casts. --- src/quickfix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quickfix.c') diff --git a/src/quickfix.c b/src/quickfix.c index 270810c314..9237b4b814 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -5921,7 +5921,7 @@ vgr_match_buflines( int found_match = FALSE; long lnum; colnr_T col; - int pat_len = STRLEN(spat); + int pat_len = (int)STRLEN(spat); for (lnum = 1; lnum <= buf->b_ml.ml_line_count && *tomatch > 0; ++lnum) { -- cgit v1.2.3