Skip to content

Commit

Permalink
mrb_state added to mrb_voidp_valule
Browse files Browse the repository at this point in the history
  • Loading branch information
yamshing committed Jun 1, 2013
1 parent 0458b03 commit c9d48be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init_cocoa.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
void
set_cocoa_state(mrb_state* mrb, struct cocoa_state *state)
{
mrb_value mstate = mrb_voidp_value(state);
mrb_value mstate = mrb_voidp_value(mrb, state);
struct RClass* klass = (struct RClass*)mrb_object(mrb_vm_const_get(mrb, mrb_intern(mrb, "Cocoa")));
mrb_mod_cv_set(mrb, klass, mrb_intern(mrb, "cocoa_state"), mstate);
}
Expand Down

0 comments on commit c9d48be

Please sign in to comment.