Skip to content

Commit 05aa1fa

Browse files
QuzarDCQuzarDC
authored andcommitted
arch/irq: Properly type irq trap codes
C++ is less friendly to this kind of implicit typing, so ensure to cast explicitly.
1 parent ea49aba commit 05aa1fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • kernel/arch/dreamcast/include/arch

kernel/arch/dreamcast/include/arch/irq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ enum irq_exception
230230
EXC_TRAP = 0x0800 /**< `[TRAP ]` Trap */
231231
};
232232

233-
#define IRQ_TRAP_CODE(code) (EXC_TRAP + (code))
233+
#define IRQ_TRAP_CODE(code) (irq_t)(EXC_TRAP + (code))
234234

235235
extern int inside_int;
236236
static inline int arch_irq_inside_int(void) {

0 commit comments

Comments
 (0)