mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Fix non-C89-compatible syntax.
This commit is contained in:
parent
e171965ea1
commit
4011a249a8
1 changed files with 2 additions and 2 deletions
|
|
@ -4420,7 +4420,7 @@ slot_tp_str(PyObject *self)
|
|||
static long
|
||||
slot_tp_hash(PyObject *self)
|
||||
{
|
||||
PyObject *func;
|
||||
PyObject *func, *res;
|
||||
static PyObject *hash_str;
|
||||
long h;
|
||||
|
||||
|
|
@ -4438,7 +4438,7 @@ slot_tp_hash(PyObject *self)
|
|||
return -1;
|
||||
}
|
||||
|
||||
PyObject *res = PyEval_CallObject(func, NULL);
|
||||
res = PyEval_CallObject(func, NULL);
|
||||
Py_DECREF(func);
|
||||
if (res == NULL)
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue