]> granicus.if.org Git - python/commitdiff
fix c89 declaration order
authorBenjamin Peterson <benjamin@python.org>
Sat, 15 Mar 2014 02:53:51 +0000 (21:53 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sat, 15 Mar 2014 02:53:51 +0000 (21:53 -0500)
Objects/longobject.c

index e2d95ae51fd9f1546fdda09ecf90ee222dc35d36..2245ece89980737bbe4506677f24a8c05830fc24 100644 (file)
@@ -36,8 +36,9 @@ Py_ssize_t quick_int_allocs, quick_neg_int_allocs;
 static PyObject *
 get_small_int(sdigit ival)
 {
+    PyObject *v;
     assert(-NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS);
-    PyObject *v = (PyObject *)&small_ints[ival + NSMALLNEGINTS];
+    v = (PyObject *)&small_ints[ival + NSMALLNEGINTS];
     Py_INCREF(v);
 #ifdef COUNT_ALLOCS
     if (ival >= 0)