Skip to content

Commit

Permalink
Minor fixes to fir generator
Browse files Browse the repository at this point in the history
Initialize variable with "= false", and remove trailing space in comment

Change-Id: I51135c1b6275e910155a0331b741e7d11b03fae2
  • Loading branch information
gkasten committed Mar 2, 2015
1 parent bf31b33 commit bf5d066
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/resampler_tools/fir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ int main(int argc, char** argv)
double Fc = 20478;
double atten = 1;
int format = 0; // 0=fixed, 1=float
bool declarations = 0;
bool declarations = false;

// in order to keep the errors associated with the linear
// interpolation of the coefficients below the quantization error
Expand Down Expand Up @@ -230,9 +230,9 @@ int main(int argc, char** argv)
for (int i = M-1 ; i; i>>=1, nz++);
// generate the right half of the filter
if (!debug) {
printf("// cmd-line: ");
printf("// cmd-line:");
for (int i=0 ; i<argc ; i++) {
printf("%s ", argv[i]);
printf(" %s", argv[i]);
}
printf("\n");
if (declarations) {
Expand Down

0 comments on commit bf5d066

Please sign in to comment.