diff options
author | Thomas Heller <theller@ctypes.org> | 2007-05-30 06:58:30 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-05-30 06:58:30 (GMT) |
commit | 601aa414b2ca414af6cf1ddb121e8424605b0e87 (patch) | |
tree | b66ec820d6994eb76c4a1ea9ecf829124640f675 /Modules | |
parent | 2fca81cc4cd3473bacbc555f2b867518518f9458 (diff) | |
download | cpython-601aa414b2ca414af6cf1ddb121e8424605b0e87.zip cpython-601aa414b2ca414af6cf1ddb121e8424605b0e87.tar.gz cpython-601aa414b2ca414af6cf1ddb121e8424605b0e87.tar.bz2 |
Fix compiler warnings.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/callbacks.c | 4 |
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); |