We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 198b1ed commit 9bc59b6Copy full SHA for 9bc59b6
1 file changed
include/zephyr/util.h
@@ -138,8 +138,7 @@ extern "C" {
138
* @param array A C array (that has not decayed to a pointer)
139
* @return size_t - size of the array in 8-bit bytes
140
*/
141
-# define IC_ARRAY_SIZE(array) \
142
- (size_t)(_IC_IS_ARRAY(array) + (sizeof(array) / sizeof((array)[0])))
+# define IC_ARRAY_SIZE(array) (size_t)(_IC_IS_ARRAY(array) + sizeof(array))
143
144
#endif /* not __cplusplus */
145
0 commit comments