summaryrefslogtreecommitdiffhomepage
path: root/src/proc.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-08-04 06:44:53 +0900
committerYukihiro Matsumoto <[email protected]>2012-08-04 06:44:53 +0900
commit472d214a71f69fe25e681d9fea6a04fa12e60fb0 (patch)
treee27dbbfbe08a82b8592b264fd81e4b87c9367db2 /src/proc.c
parent730f53045eb85cf995b0b675ea2818a682810a4f (diff)
downloadmruby-472d214a71f69fe25e681d9fea6a04fa12e60fb0.tar.gz
mruby-472d214a71f69fe25e681d9fea6a04fa12e60fb0.zip
super look-up scheme fixed; close #415
Diffstat (limited to 'src/proc.c')
-rw-r--r--src/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proc.c b/src/proc.c
index a1f8b180e..e5c233e1b 100644
--- a/src/proc.c
+++ b/src/proc.c
@@ -15,8 +15,8 @@ mrb_proc_new(mrb_state *mrb, mrb_irep *irep)
struct RProc *p;
p = (struct RProc*)mrb_obj_alloc(mrb, MRB_TT_PROC, mrb->proc_class);
- p->body.irep = irep;
p->target_class = (mrb->ci) ? mrb->ci->target_class : 0;
+ p->body.irep = irep;
p->env = 0;
return p;