1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00

Reapply 132173badfe9315e94ab30fb19d366adbc63e826

Author: Julien Nabet <serval2412@yahoo.fr>
   Date:   Sat Nov 7 22:47:34 2015 +0100

       cppcheck: fix 2 reports

       [lib-src/libnyquist/nyquist/nyqsrc/sndwritepa.c:249]: (style) Same expression in both branches of ternary operator
       [lib-src/libnyquist/nyquist/nyqsrc/f0.cpp:137]: (error) Mismatching allocation and deallocation: results
This commit is contained in:
Leland Lucius 2019-12-15 19:44:59 -06:00
parent 68eec279fb
commit 4658dd963e
2 changed files with 2 additions and 2 deletions

View File

@ -134,6 +134,6 @@ float best_f0(float *samples, int n, int m, float threshold, int Tmax)
best_f0=f0;
}
}
delete(results);
delete[] results;
return best_f0;
}

View File

@ -299,7 +299,7 @@ long lookup_format(long format, long mode, long bits, long swap)
sf_format |= (swap ? SF_ENDIAN_LITTLE : SF_ENDIAN_BIG);
#endif
#ifdef XL_LITTLE_ENDIAN
sf_format |= (swap ? SF_ENDIAN_LITTLE : SF_ENDIAN_LITTLE);
sf_format |= (swap ? SF_ENDIAN_BIG : SF_ENDIAN_LITTLE);
#endif
break;
default: