Mercurial > vim
comparison src/drawline.c @ 29477:6387e75a4a6b v9.0.0080
patch 9.0.0080: compiler warning for size_t to int conversion
Commit: https://github.com/vim/vim/commit/0494789ecee9e2a973f48426f7a69fb96378fa8a
Author: Mike Williams <mikew@globalgraphics.com>
Date: Tue Jul 26 16:03:42 2022 +0100
patch 9.0.0080: compiler warning for size_t to int conversion
Problem: Compiler warning for size_t to int conversion.
Solution: Add type casts. (Mike Williams, closes https://github.com/vim/vim/issues/10795)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 Jul 2022 17:15:03 +0200 |
parents | 5b3819ce0865 |
children | ec5f48ab361b |
comparison
equal
deleted
inserted
replaced
29476:2586309508be | 29477:6387e75a4a6b |
---|---|
1522 ->b_textprop_text.ga_data)[ | 1522 ->b_textprop_text.ga_data)[ |
1523 -text_prop_id - 1]; | 1523 -text_prop_id - 1]; |
1524 if (p != NULL) | 1524 if (p != NULL) |
1525 { | 1525 { |
1526 p_extra = p; | 1526 p_extra = p; |
1527 n_extra = STRLEN(p); | 1527 n_extra = (int)STRLEN(p); |
1528 extra_attr = used_attr; | 1528 extra_attr = used_attr; |
1529 n_attr = n_extra; | 1529 n_attr = n_extra; |
1530 text_prop_attr = 0; | 1530 text_prop_attr = 0; |
1531 | 1531 |
1532 // If the cursor is on or after this position, | 1532 // If the cursor is on or after this position, |