comparison src/drawscreen.c @ 25192:0588ea998908 v8.2.3132

patch 8.2.3132: compiler warns for size_t to colnr_T conversion. Commit: https://github.com/vim/vim/commit/6bcb18253a392cf75d3784953ef9c71de7af9019 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 9 15:54:00 2021 +0200 patch 8.2.3132: compiler warns for size_t to colnr_T conversion. Problem: Compiler warns for size_t to colnr_T conversion. (Randall W. Morris) Solution: Add a type cast.
author Bram Moolenaar <Bram@vim.org>
date Fri, 09 Jul 2021 16:00:05 +0200
parents f60fa4221b11
children c11fc61b0872
comparison
equal deleted inserted replaced
25191:00e276200553 25192:0588ea998908
2034 : pos.lnum >= VIsual.lnum; 2034 : pos.lnum >= VIsual.lnum;
2035 pos.lnum += cursor_above ? 1 : -1) 2035 pos.lnum += cursor_above ? 1 : -1)
2036 { 2036 {
2037 colnr_T t; 2037 colnr_T t;
2038 2038
2039 pos.col = STRLEN(ml_get_buf(wp->w_buffer, 2039 pos.col = (int)STRLEN(ml_get_buf(wp->w_buffer,
2040 pos.lnum, FALSE)); 2040 pos.lnum, FALSE));
2041 getvvcol(wp, &pos, NULL, NULL, &t); 2041 getvvcol(wp, &pos, NULL, NULL, &t);
2042 if (toc < t) 2042 if (toc < t)
2043 toc = t; 2043 toc = t;
2044 } 2044 }