From 0ff9c9fca3bcf422cd361305ec4a323e2aff5c1f Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 24 Oct 2020 16:48:33 +0700 Subject: Transceiver: use size_t and ARRAY_SIZE() in constructor Change-Id: I164d66aad04d77957300b07e83b085f43a3ee8c1 --- Transceiver52M/Transceiver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp index 6e40be5..881633e 100644 --- a/Transceiver52M/Transceiver.cpp +++ b/Transceiver52M/Transceiver.cpp @@ -144,8 +144,8 @@ Transceiver::Transceiver(const struct trx_cfg *cfg, txFullScale = mRadioInterface->fullScaleInputValue(); rxFullScale = mRadioInterface->fullScaleOutputValue(); - for (int i = 0; i < 8; i++) { - for (int j = 0; j < 8; j++) + for (size_t i = 0; i < ARRAY_SIZE(mHandover); i++) { + for (size_t j = 0; j < ARRAY_SIZE(mHandover[i]); j++) mHandover[i][j] = false; } } -- cgit v1.2.3