diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-10-24 16:48:33 +0700 |
---|---|---|
committer | fixeria <vyanitskiy@sysmocom.de> | 2020-10-24 23:41:57 +0000 |
commit | 0ff9c9fca3bcf422cd361305ec4a323e2aff5c1f (patch) | |
tree | 73bc7bd4f8bee3c0011a3973343a1fa4ca623af1 | |
parent | 24cb0c9948403427944bac234786eaa985ab6845 (diff) |
Transceiver: use size_t and ARRAY_SIZE() in constructor
Change-Id: I164d66aad04d77957300b07e83b085f43a3ee8c1
-rw-r--r-- | Transceiver52M/Transceiver.cpp | 4 |
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; } } |