Commit c58d06b4 authored by Charlie Somerville's avatar Charlie Somerville

use RBASIC_CLASS instead of RBASIC()->klass

parent a82e64c1
......@@ -324,7 +324,7 @@ event_hook(rb_event_t event, NODE *node, VALUE self, ID mid, VALUE klass)
bool singleton = false;
if (klass) {
if (TYPE(klass) == T_ICLASS) {
klass = RBASIC(klass)->klass;
klass = RBASIC_CLASS(klass);
}
singleton = FL_TEST(klass, FL_SINGLETON);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment