Commit 61a8a618 authored by Carson McDonald's avatar Carson McDonald

Use mrb_check_datatype directly to avoid warning.

parent 6e48f272
......@@ -29,7 +29,7 @@ static mt_state *mrb_mt_get_context(mrb_state *mrb, mrb_value self)
mrb_value context;
context = mrb_iv_get(mrb, self, mrb_intern(mrb, MT_STATE_KEY));
Data_Get_Struct(mrb, context, &mt_state_type, t);
t = (mt_state *)mrb_check_datatype(mrb, context, &mt_state_type);
if (!t)
mrb_raise(mrb, E_RUNTIME_ERROR, "mt_state get from mrb_iv_get failed");
......
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