diff --git a/components/bt/esp_ble_mesh/mesh_common/include/mesh_util.h b/components/bt/esp_ble_mesh/mesh_common/include/mesh_util.h index 2690adde7c..8696d4a5c2 100644 --- a/components/bt/esp_ble_mesh/mesh_common/include/mesh_util.h +++ b/components/bt/esp_ble_mesh/mesh_common/include/mesh_util.h @@ -57,9 +57,7 @@ extern "C" { * an array (e.g. pointer) */ #ifndef ARRAY_SIZE -#define ARRAY_SIZE(array) \ - ((unsigned long) (IS_ARRAY(array) + \ - (sizeof(array) / sizeof((array)[0])))) +#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) #endif /* Evaluates to 1 if ptr is part of array, 0 otherwise; compile error if