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

Skip to content

Commit 45c9dce

Browse files
committed
fix c89 declaration order
1 parent 041c38a commit 45c9dce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Objects/longobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ Py_ssize_t quick_int_allocs, quick_neg_int_allocs;
3636
static PyObject *
3737
get_small_int(sdigit ival)
3838
{
39+
PyObject *v;
3940
assert(-NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS);
40-
PyObject *v = (PyObject *)&small_ints[ival + NSMALLNEGINTS];
41+
v = (PyObject *)&small_ints[ival + NSMALLNEGINTS];
4142
Py_INCREF(v);
4243
#ifdef COUNT_ALLOCS
4344
if (ival >= 0)

0 commit comments

Comments
 (0)