From 90d38af705551a3ca33b7fc9ab13c36ad36e63f0 Mon Sep 17 00:00:00 2001 From: GullCode Date: Thu, 21 Apr 2022 17:29:42 +0200 Subject: [PATCH] Fix for warning: comparison of integer expressions of different signedness --- firmware/baseband/proc_adsbrx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/baseband/proc_adsbrx.cpp b/firmware/baseband/proc_adsbrx.cpp index faef978f..4520f1c9 100644 --- a/firmware/baseband/proc_adsbrx.cpp +++ b/firmware/baseband/proc_adsbrx.cpp @@ -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 // energy can be in the near samples int32_t thisAmp = (shifter[1] + shifter[3] + shifter[8] + shifter[10]); - int32_t high = thisAmp / 9; + uint32_t high = thisAmp / 9; if ( shifter[5] < high && shifter[6] < high &&