coding: Use ARRAY_SIZE macro

Change-Id: I6b7a2a3a7be6a1d92038ff3b249e539fcd0f639e
This commit is contained in:
Pau Espin 2022-05-13 14:03:27 +02:00
parent 7fba76608f
commit 6c58d155eb
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ static int osmo_conv_decode_ber_punctured(const struct osmo_conv_code *code,
return res;
coded_len = osmo_conv_encode(code, output, recoded);
OSMO_ASSERT(sizeof(recoded) / sizeof(recoded[0]) >= coded_len);
OSMO_ASSERT(ARRAY_SIZE(recoded) >= coded_len);
/* Count bit errors */
if (n_errors) {