summaryrefslogtreecommitdiff
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-25 22:18:08 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-25 22:18:08 +0000
commit7df2d6629f7cfb05e33a1e27cd7fda943afbbba9 (patch)
tree06b43379638af7a02741262c8d236b2a43b44916 /src/if_python.c
parentdad6b69c00a16f06624aeca1353a7aa53f631893 (diff)
downloadvim-git-7df2d6629f7cfb05e33a1e27cd7fda943afbbba9.tar.gz
updated for version 7.0044
Diffstat (limited to 'src/if_python.c')
-rw-r--r--src/if_python.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/if_python.c b/src/if_python.c
index 511378a0d..04a8d179a 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -891,8 +891,8 @@ PythonIO_Init(void)
/* Fixups... */
OutputType.ob_type = &PyType_Type;
- PySys_SetObject("stdout", (PyObject *)(&Output));
- PySys_SetObject("stderr", (PyObject *)(&Error));
+ PySys_SetObject("stdout", (PyObject *)(void *)&Output);
+ PySys_SetObject("stderr", (PyObject *)(void *)&Error);
if (PyErr_Occurred())
{
@@ -2190,9 +2190,9 @@ PythonMod_Init(void)
VimError = Py_BuildValue("s", "vim.error");
PyDict_SetItemString(dict, "error", VimError);
- PyDict_SetItemString(dict, "buffers", (PyObject *)(&TheBufferList));
- PyDict_SetItemString(dict, "current", (PyObject *)(&TheCurrent));
- PyDict_SetItemString(dict, "windows", (PyObject *)(&TheWindowList));
+ PyDict_SetItemString(dict, "buffers", (PyObject *)(void *)&TheBufferList);
+ PyDict_SetItemString(dict, "current", (PyObject *)(void *)&TheCurrent);
+ PyDict_SetItemString(dict, "windows", (PyObject *)(void *)&TheWindowList);
if (PyErr_Occurred())
return -1;