aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-24 16:48:33 +0700
committerfixeria <vyanitskiy@sysmocom.de>2020-10-24 23:41:57 +0000
commit0ff9c9fca3bcf422cd361305ec4a323e2aff5c1f (patch)
tree73bc7bd4f8bee3c0011a3973343a1fa4ca623af1 /Transceiver52M
parent24cb0c9948403427944bac234786eaa985ab6845 (diff)
Transceiver: use size_t and ARRAY_SIZE() in constructor
Diffstat (limited to 'Transceiver52M')
-rw-r--r--Transceiver52M/Transceiver.cpp4
1 files 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;
}
}