Skip to content

Commit 18fd294

Browse files
tychofrei02MaureenHelm
authored andcommitted
include: arch: x86: added missing parenthesis
- added missing parenthesis around macro argument expansion Signed-off-by: frei tycho <[email protected]>
1 parent bdfb6af commit 18fd294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/arch/x86/arch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static ALWAYS_INLINE int sys_test_and_clear_bit(mem_addr_t addr,
219219
extern unsigned char _irq_to_interrupt_vector[];
220220

221221
#define Z_IRQ_TO_INTERRUPT_VECTOR(irq) \
222-
((unsigned int) _irq_to_interrupt_vector[irq])
222+
((unsigned int) _irq_to_interrupt_vector[(irq)])
223223

224224

225225
#endif /* _ASMLANGUAGE */

0 commit comments

Comments
 (0)