mirror of https://github.com/python/cpython
Clean up whitespace and remove unneeded variable initialization as found by
Clang.
This commit is contained in:
parent
99ac9147cb
commit
9824e7f57c
|
@ -498,9 +498,8 @@ audioop_findfit(PyObject *self, PyObject *args)
|
|||
|
||||
best_result = result;
|
||||
best_j = 0;
|
||||
j = 0;
|
||||
|
||||
for ( j=1; j<=len1-len2; j++) {
|
||||
for (j=1; j<=len1-len2; j++) {
|
||||
aj_m1 = (double)cp1[j-1];
|
||||
aj_lm1 = (double)cp1[j+len2-1];
|
||||
|
||||
|
@ -584,9 +583,8 @@ audioop_findmax(PyObject *self, PyObject *args)
|
|||
|
||||
best_result = result;
|
||||
best_j = 0;
|
||||
j = 0;
|
||||
|
||||
for ( j=1; j<=len1-len2; j++) {
|
||||
for (j=1; j<=len1-len2; j++) {
|
||||
aj_m1 = (double)cp1[j-1];
|
||||
aj_lm1 = (double)cp1[j+len2-1];
|
||||
|
||||
|
@ -1434,7 +1432,6 @@ audioop_lin2adpcm(PyObject *self, PyObject *args)
|
|||
if ( state == Py_None ) {
|
||||
/* First time, it seems. Set defaults */
|
||||
valpred = 0;
|
||||
step = 7;
|
||||
index = 0;
|
||||
} else if ( !PyArg_ParseTuple(state, "ii", &valpred, &index) )
|
||||
return 0;
|
||||
|
@ -1536,7 +1533,6 @@ audioop_adpcm2lin(PyObject *self, PyObject *args)
|
|||
if ( state == Py_None ) {
|
||||
/* First time, it seems. Set defaults */
|
||||
valpred = 0;
|
||||
step = 7;
|
||||
index = 0;
|
||||
} else if ( !PyArg_ParseTuple(state, "ii", &valpred, &index) )
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue