Patch 8.1.2309
Problem:    Compiler warning for argument type.
Solution:   Use linenr_T and cast to varnumber_T. (John Marriott)
Files:      src/mouse.c


*** ../vim-8.1.2308/src/mouse.c 2019-11-16 18:21:57.990848019 +0100
--- src/mouse.c 2019-11-16 20:47:28.951348429 +0100
***************
*** 3019,3025 ****
      varnumber_T winid = 0;
      varnumber_T winrow = 0;
      varnumber_T wincol = 0;
!     varnumber_T line = 0;
      varnumber_T column = 0;
  
      if (rettv_dict_alloc(rettv) != OK)
--- 3019,3025 ----
      varnumber_T winid = 0;
      varnumber_T winrow = 0;
      varnumber_T wincol = 0;
!     linenr_T  line = 0;
      varnumber_T column = 0;
  
      if (rettv_dict_alloc(rettv) != OK)
***************
*** 3061,3067 ****
      dict_add_number(d, "winid", winid);
      dict_add_number(d, "winrow", winrow);
      dict_add_number(d, "wincol", wincol);
!     dict_add_number(d, "line", line);
      dict_add_number(d, "column", column);
  }
  #endif
--- 3061,3067 ----
      dict_add_number(d, "winid", winid);
      dict_add_number(d, "winrow", winrow);
      dict_add_number(d, "wincol", wincol);
!     dict_add_number(d, "line", (varnumber_T)line);
      dict_add_number(d, "column", column);
  }
  #endif
*** ../vim-8.1.2308/src/version.c       2019-11-16 20:41:47.824812616 +0100
--- src/version.c       2019-11-16 20:48:54.822965345 +0100
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     2309,
  /**/

-- 
You can't have everything.  Where would you put it?
                -- Steven Wright

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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/201911161949.xAGJnheK031252%40masaka.moolenaar.net.

Raspunde prin e-mail lui