Skip to content

Commit

Permalink
Use constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mtgrosser committed Apr 16, 2021
1 parent 7a9a065 commit 1567f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/rszr/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void rszr_raise_error_with_message(VALUE rb_error_class, Imlib_Load_Error
{
int error_index = (int) error - 1;
if (error_index < 1 || error_index > RSZR_MAX_ERROR_INDEX)
error_index = 13;
error_index = RSZR_MAX_ERROR_INDEX;
VALUE rb_error = rb_exc_new2(rb_error_class, sRszrErrorMessages[error_index]);
rb_exc_raise(rb_error);
}
Expand Down

0 comments on commit 1567f4f

Please sign in to comment.