Patch 8.1.1020
Problem:    Compiler warning for Python3 interface.
Solution:   Add type cast. (Ozaki Kiichi, closes #4128, closes #4103)
Files:      src/if_python3.c


*** ../vim-8.1.1019/src/if_python3.c    2019-02-18 22:04:52.949609091 +0100
--- src/if_python3.c    2019-03-19 22:08:39.907136767 +0100
***************
*** 799,808 ****
   */
  #include "if_py_both.h"
  
  #define GET_ATTR_STRING(name, nameobj) \
      char      *name = ""; \
      if (PyUnicode_Check(nameobj)) \
!       name = _PyUnicode_AsString(nameobj)
  
  #define PY3OBJ_DELETED(obj) (obj->ob_base.ob_refcnt<=0)
  
--- 799,809 ----
   */
  #include "if_py_both.h"
  
+ // NOTE: Must always be used at the start of a block, since it declares 
"name".
  #define GET_ATTR_STRING(name, nameobj) \
      char      *name = ""; \
      if (PyUnicode_Check(nameobj)) \
!       name = (char *)_PyUnicode_AsString(nameobj)
  
  #define PY3OBJ_DELETED(obj) (obj->ob_base.ob_refcnt<=0)
  
*** ../vim-8.1.1019/src/version.c       2019-03-19 21:59:16.268914799 +0100
--- src/version.c       2019-03-19 22:09:49.170503232 +0100
***************
*** 781,782 ****
--- 781,784 ----
  {   /* Add new patch number below this line */
+ /**/
+     1020,
  /**/

-- 
>From "know your smileys":
 :-)-O  Smiling doctor with stethoscope

 /// 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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui