mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 17:09:26 +02:00
Fix identical sub-expressions of - operator
This commit is contained in:
parent
7c73011629
commit
168db87ddf
@ -306,8 +306,15 @@ sampleCount VoiceKey::OnBackward (
|
|||||||
//Initialize these trend markers atrend and ztrend. They keep track of the
|
//Initialize these trend markers atrend and ztrend. They keep track of the
|
||||||
//up/down trends at the start and end of the evaluation window.
|
//up/down trends at the start and end of the evaluation window.
|
||||||
int atrend = sgn(buffer[remaining - 2]-buffer[remaining - 1]);
|
int atrend = sgn(buffer[remaining - 2]-buffer[remaining - 1]);
|
||||||
|
|
||||||
int ztrend = sgn(buffer[remaining - WindowSizeInt - 2] -
|
int ztrend = sgn(buffer[remaining - WindowSizeInt - 2] -
|
||||||
buffer[remaining - WindowSizeInt - 2]);
|
buffer[remaining - WindowSizeInt
|
||||||
|
// PVS-Studio detected a probable error here
|
||||||
|
// when it read - 2.
|
||||||
|
// is - 1 correct?
|
||||||
|
// This code is unused. I didn't study further.
|
||||||
|
- 1
|
||||||
|
]);
|
||||||
|
|
||||||
double erg=0;
|
double erg=0;
|
||||||
double sc = 0;
|
double sc = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user