commit | 6c58d155eb74775480f33b5411338c38e24991a2 | [log] [tgz] |
---|---|---|
author | Pau Espin Pedrol <pespin@sysmocom.de> | Fri May 13 14:03:27 2022 +0200 |
committer | Pau Espin Pedrol <pespin@sysmocom.de> | Fri May 13 14:09:43 2022 +0200 |
tree | 1c47a4608cc008d3d119134c575fed16b435c844 | |
parent | 7fba76608f4cc1a096d1d109bacfda1dd23ddd47 [diff] |
coding: Use ARRAY_SIZE macro Change-Id: I6b7a2a3a7be6a1d92038ff3b249e539fcd0f639e
diff --git a/src/coding/gsm0503_coding.c b/src/coding/gsm0503_coding.c index 493f957..3ad2861 100644 --- a/src/coding/gsm0503_coding.c +++ b/src/coding/gsm0503_coding.c
@@ -547,7 +547,7 @@ 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) {