From 2a0a36945cdc32b0ecc3f933c13ce7365a530b9e Mon Sep 17 00:00:00 2001 From: Kees Bakker Date: Mon, 22 Jul 2019 23:13:28 +0200 Subject: [PATCH] core: make use of ARRAY_SIZE macro --- core/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sched.c b/core/sched.c index 65553c9833..40eded9eef 100644 --- a/core/sched.c +++ b/core/sched.c @@ -65,7 +65,7 @@ static uint32_t runqueue_bitcache = 0; #endif FORCE_USED_SECTION -const uint8_t max_threads = sizeof(sched_threads) / sizeof(thread_t*); +const uint8_t max_threads = ARRAY_SIZE(sched_threads); #ifdef DEVELHELP /* OpenOCD can't determine struct offsets and additionally this member is only