commit | 0494789ecee9e2a973f48426f7a69fb96378fa8a | [log] [tgz] |
---|---|---|
author | Mike Williams <mikew@globalgraphics.com> | Tue Jul 26 16:03:42 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jul 26 16:03:42 2022 +0100 |
tree | 16b380c8f121703108d67ca2ccc8080d163609c9 | |
parent | 6809ff978a5c5b798952db9fa663df9e1776f3ff [diff] [blame] |
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 #10795)
diff --git a/src/drawline.c b/src/drawline.c index 666e32d..7b16457 100644 --- a/src/drawline.c +++ b/src/drawline.c
@@ -1524,7 +1524,7 @@ if (p != NULL) { p_extra = p; - n_extra = STRLEN(p); + n_extra = (int)STRLEN(p); extra_attr = used_attr; n_attr = n_extra; text_prop_attr = 0;