diff options
Diffstat (limited to 'eval_error.c')
-rw-r--r-- | eval_error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c index c7ccf82a0a..3ad2915ccc 100644 --- a/eval_error.c +++ b/eval_error.c @@ -112,7 +112,7 @@ error_print(void) error_pos(); } else { - VALUE mesg = RARRAY_PTR(errat)[0]; + VALUE mesg = RARRAY_AREF(errat, 0); if (NIL_P(mesg)) error_pos(); |