mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-25 07:19:28 -05:00
Merge pull request #596 from GullCode/proc-adsbrx-warning-fix
Fix for warning: comparison of integer expressions of different signedness
This commit is contained in:
commit
a91bbe6a2e
@ -120,7 +120,7 @@ void ADSBRXProcessor::execute(const buffer_c8_t& buffer) {
|
|||||||
// the high levels as signals can be out of phase so part of the
|
// the high levels as signals can be out of phase so part of the
|
||||||
// energy can be in the near samples
|
// energy can be in the near samples
|
||||||
int32_t thisAmp = (shifter[1] + shifter[3] + shifter[8] + shifter[10]);
|
int32_t thisAmp = (shifter[1] + shifter[3] + shifter[8] + shifter[10]);
|
||||||
int32_t high = thisAmp / 9;
|
uint32_t high = thisAmp / 9;
|
||||||
if (
|
if (
|
||||||
shifter[5] < high &&
|
shifter[5] < high &&
|
||||||
shifter[6] < high &&
|
shifter[6] < high &&
|
||||||
|
Loading…
Reference in New Issue
Block a user