mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Fix a bunch of compiler warnings. In at least one case these were serious bugs!
This commit is contained in:
parent
dc5f6b232b
commit
f1624cd2d6
2 changed files with 8 additions and 8 deletions
|
@ -1979,7 +1979,7 @@ is_default_cmp(PyObject *cmpfunc)
|
|||
return 1;
|
||||
if (!PyCFunction_Check(cmpfunc))
|
||||
return 0;
|
||||
f = (PyCFunction *)cmpfunc;
|
||||
f = (PyCFunctionObject *)cmpfunc;
|
||||
if (f->m_self != NULL)
|
||||
return 0;
|
||||
if (!PyString_Check(f->m_module))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue