sched/irq: Avoid directly converting variables of type uintptr_t to void*

According to MISRA C-2012 Rule 11.6, a cast shall not be performed between pointer to void and an arithmetic type

Signed-off-by: pangzhen1 <pangzhen1@xiaomi.com>
This commit is contained in:
pangzhen1
2025-09-16 16:39:43 +08:00
committed by Alan C. Assis
parent d5d6b65213
commit 72117428fb
+1 -1
View File
@@ -86,7 +86,7 @@ static int isr_thread_main(int argc, FAR char *argv[])
int irq = atoi(argv[1]);
xcpt_t isr = (xcpt_t)((uintptr_t)strtoul(argv[2], NULL, 16));
xcpt_t isrthread = (xcpt_t)((uintptr_t)strtoul(argv[3], NULL, 16));
FAR void *arg = (FAR void *)((uintptr_t)strtoul(argv[4], NULL, 16));
FAR void *arg = (FAR char *)((uintptr_t)strtoul(argv[4], NULL, 16));
struct irq_thread_info_s info;
sem_t sem;