mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 12:11:36 +08:00
Data validator: Fix compile warning on signedness
This commit is contained in:
@@ -109,7 +109,7 @@ DataValidatorGroup::get_best(uint64_t timestamp, int *index)
|
|||||||
while (next != nullptr) {
|
while (next != nullptr) {
|
||||||
float confidence = next->confidence(timestamp);
|
float confidence = next->confidence(timestamp);
|
||||||
|
|
||||||
if (i == pre_check_best) {
|
if (static_cast<int>(i) == pre_check_best) {
|
||||||
pre_check_prio = next->priority();
|
pre_check_prio = next->priority();
|
||||||
pre_check_confidence = confidence;
|
pre_check_confidence = confidence;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user