Clean up whitespace and remove unneeded variable initialization as found by

Clang.
This commit is contained in:
Brett Cannon 2010-05-03 23:42:40 +00:00
parent 99ac9147cb
commit 9824e7f57c
1 changed files with 52 additions and 56 deletions

View File

@ -498,9 +498,8 @@ audioop_findfit(PyObject *self, PyObject *args)
best_result = result; best_result = result;
best_j = 0; 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_m1 = (double)cp1[j-1];
aj_lm1 = (double)cp1[j+len2-1]; aj_lm1 = (double)cp1[j+len2-1];
@ -584,9 +583,8 @@ audioop_findmax(PyObject *self, PyObject *args)
best_result = result; best_result = result;
best_j = 0; 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_m1 = (double)cp1[j-1];
aj_lm1 = (double)cp1[j+len2-1]; aj_lm1 = (double)cp1[j+len2-1];
@ -1434,7 +1432,6 @@ audioop_lin2adpcm(PyObject *self, PyObject *args)
if ( state == Py_None ) { if ( state == Py_None ) {
/* First time, it seems. Set defaults */ /* First time, it seems. Set defaults */
valpred = 0; valpred = 0;
step = 7;
index = 0; index = 0;
} else if ( !PyArg_ParseTuple(state, "ii", &valpred, &index) ) } else if ( !PyArg_ParseTuple(state, "ii", &valpred, &index) )
return 0; return 0;
@ -1536,7 +1533,6 @@ audioop_adpcm2lin(PyObject *self, PyObject *args)
if ( state == Py_None ) { if ( state == Py_None ) {
/* First time, it seems. Set defaults */ /* First time, it seems. Set defaults */
valpred = 0; valpred = 0;
step = 7;
index = 0; index = 0;
} else if ( !PyArg_ParseTuple(state, "ii", &valpred, &index) ) } else if ( !PyArg_ParseTuple(state, "ii", &valpred, &index) )
return 0; return 0;