mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-24 16:20:05 +02:00
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:
parent
3fbfcb773a
commit
132173badf
@ -134,6 +134,6 @@ float best_f0(float *samples, int n, int m, float threshold, int Tmax)
|
|||||||
best_f0=f0;
|
best_f0=f0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete(results);
|
delete[] results;
|
||||||
return best_f0;
|
return best_f0;
|
||||||
}
|
}
|
||||||
|
@ -246,7 +246,7 @@ long lookup_format(long format, long mode, long bits, long swap)
|
|||||||
sf_format |= (swap ? SF_ENDIAN_LITTLE : SF_ENDIAN_BIG);
|
sf_format |= (swap ? SF_ENDIAN_LITTLE : SF_ENDIAN_BIG);
|
||||||
#endif
|
#endif
|
||||||
#ifdef XL_LITTLE_ENDIAN
|
#ifdef XL_LITTLE_ENDIAN
|
||||||
sf_format |= (swap ? SF_ENDIAN_LITTLE : SF_ENDIAN_LITTLE);
|
sf_format |= (swap ? SF_ENDIAN_BIG : SF_ENDIAN_LITTLE);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user