comparison src/highlight.c @ 34838:f92e32ddcbdb v9.1.0288

patch 9.1.0288: MS-Windows: compiler warning for size_t to int conversion Commit: https://github.com/vim/vim/commit/72a156b4edfdf1502d421370cf38281c258e3c4a Author: Mike Williams <mrmrdubya@gmail.com> Date: Tue Apr 9 22:04:54 2024 +0200 patch 9.1.0288: MS-Windows: compiler warning for size_t to int conversion Problem: MS-Windows: compiler warning for size_t to int conversion (after v9.1.0282) Solution: Use size_t instead of int in highlight_set_termgui_attr (Mike Williams) closes: #14457 Signed-off-by: Mike Williams <mrmrdubya@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 09 Apr 2024 22:15:02 +0200
parents 67dc61280eba
children
comparison
equal deleted inserted replaced
34837:e7d12fddcb64 34838:f92e32ddcbdb
858 */ 858 */
859 static int 859 static int
860 highlight_set_termgui_attr(int idx, char_u *key, char_u *arg, int init) 860 highlight_set_termgui_attr(int idx, char_u *key, char_u *arg, int init)
861 { 861 {
862 int attr; 862 int attr;
863 int off; 863 size_t off;
864 keyvalue_T target; 864 keyvalue_T target;
865 keyvalue_T *entry; 865 keyvalue_T *entry;
866 866
867 attr = 0; 867 attr = 0;
868 off = 0; 868 off = 0;