Mercurial > vim
comparison src/quickfix.c @ 24574:3a3d5ee00574 v8.2.2826
patch 8.2.2826: compiler warnings for int to size_t conversion
Commit: https://github.com/vim/vim/commit/551c1aed65817558ac1ece541c246ea585645807
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 3 18:57:05 2021 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 03 May 2021 19:00:04 +0200 |
parents | 192058cad081 |
children | 2818f846f099 |
comparison
equal
deleted
inserted
replaced
24573:206a2cdcaf8a | 24574:3a3d5ee00574 |
---|---|
5919 int flags) | 5919 int flags) |
5920 { | 5920 { |
5921 int found_match = FALSE; | 5921 int found_match = FALSE; |
5922 long lnum; | 5922 long lnum; |
5923 colnr_T col; | 5923 colnr_T col; |
5924 int pat_len = STRLEN(spat); | 5924 int pat_len = (int)STRLEN(spat); |
5925 | 5925 |
5926 for (lnum = 1; lnum <= buf->b_ml.ml_line_count && *tomatch > 0; ++lnum) | 5926 for (lnum = 1; lnum <= buf->b_ml.ml_line_count && *tomatch > 0; ++lnum) |
5927 { | 5927 { |
5928 col = 0; | 5928 col = 0; |
5929 if (!(flags & VGR_FUZZY)) | 5929 if (!(flags & VGR_FUZZY)) |