]> granicus.if.org Git - python/commitdiff
bpo-37547: Fix a compiler warning in winconsoleio.c (GH-14785)
authorZackery Spytz <zspytz@gmail.com>
Fri, 19 Jul 2019 06:07:06 +0000 (00:07 -0600)
committerInada Naoki <songofacandy@gmail.com>
Fri, 19 Jul 2019 06:07:06 +0000 (15:07 +0900)
The compiler warning was introduced in
59ad110d7a7784d53d0b502eebce0346597a6bef.

Modules/_io/winconsoleio.c

index f27a6dc93a2b1bcf3aa77c8388bf6de2f18ea603..94760acd47bf25193d8be5b1ef1de3792c0fe5d3 100644 (file)
@@ -205,7 +205,7 @@ _io__WindowsConsoleIO_close_impl(winconsoleio *self)
     int rc;
     _Py_IDENTIFIER(close);
     res = _PyObject_CallMethodIdOneArg((PyObject*)&PyRawIOBase_Type,
-                                       &PyId_close, self);
+                                       &PyId_close, (PyObject*)self);
     if (!self->closehandle) {
         self->handle = INVALID_HANDLE_VALUE;
         return res;