summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-05-30 06:58:30 (GMT)
committerThomas Heller <theller@ctypes.org>2007-05-30 06:58:30 (GMT)
commit601aa414b2ca414af6cf1ddb121e8424605b0e87 (patch)
treeb66ec820d6994eb76c4a1ea9ecf829124640f675 /Modules
parent2fca81cc4cd3473bacbc555f2b867518518f9458 (diff)
downloadcpython-601aa414b2ca414af6cf1ddb121e8424605b0e87.zip
cpython-601aa414b2ca414af6cf1ddb121e8424605b0e87.tar.gz
cpython-601aa414b2ca414af6cf1ddb121e8424605b0e87.tar.bz2
Fix compiler warnings.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/callbacks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/callbacks.c b/Modules/_ctypes/callbacks.c
index 657a207..b243361 100644
--- a/Modules/_ctypes/callbacks.c
+++ b/Modules/_ctypes/callbacks.c
@@ -384,8 +384,8 @@ long Call_GetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
}
{
- PyObject *py_rclsid = PyLong_FromVoidPtr(rclsid);
- PyObject *py_riid = PyLong_FromVoidPtr(riid);
+ PyObject *py_rclsid = PyLong_FromVoidPtr((void *)rclsid);
+ PyObject *py_riid = PyLong_FromVoidPtr((void *)riid);
PyObject *py_ppv = PyLong_FromVoidPtr(ppv);
if (!py_rclsid || !py_riid || !py_ppv) {
Py_XDECREF(py_rclsid);