Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4011a24

Browse files
committed
Fix non-C89-compatible syntax.
1 parent e171965 commit 4011a24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/typeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4420,7 +4420,7 @@ slot_tp_str(PyObject *self)
44204420
static long
44214421
slot_tp_hash(PyObject *self)
44224422
{
4423-
PyObject *func;
4423+
PyObject *func, *res;
44244424
static PyObject *hash_str;
44254425
long h;
44264426

@@ -4438,7 +4438,7 @@ slot_tp_hash(PyObject *self)
44384438
return -1;
44394439
}
44404440

4441-
PyObject *res = PyEval_CallObject(func, NULL);
4441+
res = PyEval_CallObject(func, NULL);
44424442
Py_DECREF(func);
44434443
if (res == NULL)
44444444
return -1;

0 commit comments

Comments
 (0)