mirror of https://gerrit.osmocom.org/libosmocore
coding: Use ARRAY_SIZE macro
Change-Id: I6b7a2a3a7be6a1d92038ff3b249e539fcd0f639e
This commit is contained in:
parent
7fba76608f
commit
6c58d155eb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue