Mercurial > vim
comparison src/if_py_both.h @ 13353:8412df1479a3 v8.0.1550
patch 8.0.1550: various small problems in source files
commit https://github.com/vim/vim/commit/792f0e36593d1ec13ccb8a622ca5542c500577b4
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 27 17:27:13 2018 +0100
patch 8.0.1550: various small problems in source files
Problem: Various small problems in source files.
Solution: Fix the problems.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 27 Feb 2018 17:30:08 +0100 |
parents | 381e67ccf02c |
children | 76a65058766f |
comparison
equal
deleted
inserted
replaced
13352:764ce635fdc7 | 13353:8412df1479a3 |
---|---|
5994 pytotvfunc py_to_tv, PyObject *lookup_dict) | 5994 pytotvfunc py_to_tv, PyObject *lookup_dict) |
5995 { | 5995 { |
5996 PyObject *capsule; | 5996 PyObject *capsule; |
5997 char hexBuf[sizeof(void *) * 2 + 3]; | 5997 char hexBuf[sizeof(void *) * 2 + 3]; |
5998 | 5998 |
5999 sprintf(hexBuf, "%p", obj); | 5999 sprintf(hexBuf, "%p", (void *)obj); |
6000 | 6000 |
6001 # ifdef PY_USE_CAPSULE | 6001 # ifdef PY_USE_CAPSULE |
6002 capsule = PyDict_GetItemString(lookup_dict, hexBuf); | 6002 capsule = PyDict_GetItemString(lookup_dict, hexBuf); |
6003 # else | 6003 # else |
6004 capsule = (PyObject *)PyDict_GetItemString(lookup_dict, hexBuf); | 6004 capsule = (PyObject *)PyDict_GetItemString(lookup_dict, hexBuf); |