summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index be53e8d552..6a9aa2f2c3 100644
--- a/error.c
+++ b/error.c
@@ -2636,7 +2636,7 @@ exception_loader(VALUE exc, VALUE obj)
rb_ivar_foreach(obj, ivar_copy_i, exc);
- if (rb_ivar_get(exc, id_bt) == rb_ivar_get(exc, id_bt_locations)) {
+ if (rb_attr_get(exc, id_bt) == rb_attr_get(exc, id_bt_locations)) {
rb_ivar_set(exc, id_bt_locations, Qnil);
}