Commit 14ccd01e authored by Aman Gupta's avatar Aman Gupta

Merge pull request #29 from charliesome/rbasic_class

Use RBASIC_CLASS instead of RBASIC()->klass
parents a82e64c1 c58d06b4
......@@ -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