[riot-notifications] [RIOT-OS/RIOT] add ARRAYSIZE macro and make use of it (#11865)

benpicco notifications at github.com
Mon Jul 22 11:00:45 CEST 2019

benpicco commented on this pull request.

> @@ -53,7 +53,7 @@ static kernel_pid_t _tftp_kernel_pid;
 #define MIN(a, b)                   ((a) > (b) ? (b) : (a))
-#define ARRAY_LEN(x)                (sizeof(x) / sizeof(x[0]))
+#define ARRAY_LEN(x)                ARRAY_SIZE(x)

Good catch! 

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190722/04765c90/attachment.htm>

More information about the notifications mailing list