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 2dbcd817c4..ea8c3cfc2f 100644
--- a/error.c
+++ b/error.c
@@ -1261,7 +1261,7 @@ syserr_initialize(int argc, VALUE *argv, VALUE self)
if (!RB_TYPE_P(self, T_OBJECT)) { /* insurance to avoid type crash */
rb_raise(rb_eTypeError, "invalid instance type");
}
- RBASIC(self)->klass = klass;
+ RBASIC_SET_CLASS(self, klass);
}
}
else {