Skip to content

Commit

Permalink
Fix #1861 - MAX_EXCEPTION_NUM is the highest number, so check should …
Browse files Browse the repository at this point in the history
…be > not >= (#1866)
  • Loading branch information
will-v-pi authored Aug 24, 2024
1 parent 7d5d927 commit bc598ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rp2_common/hardware_exception/exception.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static void set_raw_exception_handler_and_restore_interrupts(enum exception_numb
}

static inline void check_exception_param(__unused enum exception_number num) {
invalid_params_if(HARDWARE_EXCEPTION, num < MIN_EXCEPTION_NUM || num >= MAX_EXCEPTION_NUM);
invalid_params_if(HARDWARE_EXCEPTION, num < MIN_EXCEPTION_NUM || num > MAX_EXCEPTION_NUM);
}

exception_handler_t exception_get_vtable_handler(enum exception_number num) {
Expand Down

0 comments on commit bc598ff

Please sign in to comment.