Patch 9.0.0080
Problem:    Compiler warning for size_t to int conversion.
Solution:   Add type casts. (Mike Williams, closes #10795)
Files:      src/charset.c, src/drawline.c


*** ../vim-9.0.0079/src/charset.c       2022-07-26 11:20:45.116283126 +0100
--- src/charset.c       2022-07-26 15:59:52.890558205 +0100
***************
*** 1095,1101 ****
                char_u *p = ((char_u **)wp->w_buffer->b_textprop_text.ga_data)[
                                                               -tp->tp_id - 1];
                // TODO: count screen cells
!               cts->cts_cur_text_width = STRLEN(p);
                size += cts->cts_cur_text_width;
                break;
            }
--- 1095,1101 ----
                char_u *p = ((char_u **)wp->w_buffer->b_textprop_text.ga_data)[
                                                               -tp->tp_id - 1];
                // TODO: count screen cells
!               cts->cts_cur_text_width = (int)STRLEN(p);
                size += cts->cts_cur_text_width;
                break;
            }
*** ../vim-9.0.0079/src/drawline.c      2022-07-26 11:42:31.487977143 +0100
--- src/drawline.c      2022-07-26 16:00:52.054425271 +0100
***************
*** 1524,1530 ****
                        if (p != NULL)
                        {
                            p_extra = p;
!                           n_extra = STRLEN(p);
                            extra_attr = used_attr;
                            n_attr = n_extra;
                            text_prop_attr = 0;
--- 1524,1530 ----
                        if (p != NULL)
                        {
                            p_extra = p;
!                           n_extra = (int)STRLEN(p);
                            extra_attr = used_attr;
                            n_attr = n_extra;
                            text_prop_attr = 0;
*** ../vim-9.0.0079/src/version.c       2022-07-26 15:10:52.813542580 +0100
--- src/version.c       2022-07-26 16:01:28.054344326 +0100
***************
*** 737,738 ****
--- 737,740 ----
  {   /* Add new patch number below this line */
+ /**/
+     80,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
135. You cut classes or miss work so you can stay home and browse the web.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220726150803.46D331C07D4%40moolenaar.net.

Raspunde prin e-mail lui