mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5732 from dearblue/patch-5272
Fixes `mrb_vm_ci_target_class_set()`
This commit is contained in:
@@ -157,13 +157,11 @@ static inline void
|
||||
mrb_vm_ci_target_class_set(mrb_callinfo *ci, struct RClass *tc)
|
||||
{
|
||||
struct REnv *e = ci->u.env;
|
||||
if (e) {
|
||||
if (e->tt == MRB_TT_ENV) {
|
||||
e->c = tc;
|
||||
}
|
||||
else {
|
||||
ci->u.target_class = tc;
|
||||
}
|
||||
if (e && e->tt == MRB_TT_ENV) {
|
||||
e->c = tc;
|
||||
}
|
||||
else {
|
||||
ci->u.target_class = tc;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user