From 0fdbdb044f70c030366253db73613b3c60281769 Mon Sep 17 00:00:00 2001 From: DarkMatterMatt Date: Thu, 11 Feb 2021 11:30:22 +1300 Subject: [PATCH] Use ARRAYLEN instead of constant length --- client/src/cmdlfgallagher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdlfgallagher.c b/client/src/cmdlfgallagher.c index f27869514..593e47d2c 100644 --- a/client/src/cmdlfgallagher.c +++ b/client/src/cmdlfgallagher.c @@ -204,7 +204,7 @@ static void createBlocks(uint32_t *blocks, uint8_t rc, uint16_t fc, uint32_t cn, // every byte has a 9th bit which is the inverse of the last bit uint8_t bonus_bit[8] = {0}; - for (int i = 0; i < 8; i++) { + for (int i = 0; i < ARRAYLEN(bonus_bit); i++) { bonus_bit[i] = !(arr[i] & 0x1); }