Skip to content

Commit

Permalink
Fix JRUBY-6452 - CallStaticLongMethod instead of CallStaticObjectMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
vp-of-awesome authored and enebo committed Sep 7, 2012
1 parent cc93dab commit c4f70e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cext/src/class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ extern "C" VALUE
rb_class_of(VALUE obj)
{
JLocalEnv env;
return (VALUE) env->CallStaticObjectMethod(JRuby_class, JRuby_getMetaClass, valueToObject(env, obj));
return (VALUE) env->CallStaticLongMethod(JRuby_class, JRuby_getMetaClass, valueToObject(env, obj));
}

extern "C" VALUE
Expand Down

0 comments on commit c4f70e2

Please sign in to comment.