include: arch: x86: added missing parenthesis

- added missing parenthesis around macro argument expansion

Signed-off-by: frei tycho <tfrei@baumer.com>
This commit is contained in:
frei tycho 2024-05-17 12:36:35 +00:00 committed by Maureen Helm
parent bdfb6afe70
commit 18fd294b5c
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ static ALWAYS_INLINE int sys_test_and_clear_bit(mem_addr_t addr,
extern unsigned char _irq_to_interrupt_vector[];
#define Z_IRQ_TO_INTERRUPT_VECTOR(irq) \
((unsigned int) _irq_to_interrupt_vector[irq])
((unsigned int) _irq_to_interrupt_vector[(irq)])
#endif /* _ASMLANGUAGE */