diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-04-27 08:56:39 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-04-27 08:56:39 -0700 |
| commit | 2b6be163082927ecdfa203b68639a8ff303469e6 (patch) | |
| tree | 43b1b48dd938f508bc9c6e71f273a17cf7764f7a /src/proc.c | |
| parent | fdd4920ffdf098fd245079d6c0a881c42b776971 (diff) | |
| parent | f9647592ef940271ff2c45ef2c1e42989646cdb7 (diff) | |
| download | mruby-2b6be163082927ecdfa203b68639a8ff303469e6.tar.gz mruby-2b6be163082927ecdfa203b68639a8ff303469e6.zip | |
Merge pull request #61 from pbhogan/fix-warnings
Fix various warnings
Diffstat (limited to 'src/proc.c')
| -rw-r--r-- | src/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proc.c b/src/proc.c index d4d57c6aa..f819a8130 100644 --- a/src/proc.c +++ b/src/proc.c @@ -30,7 +30,7 @@ mrb_closure_new(mrb_state *mrb, mrb_irep *irep) struct REnv *e; if (!mrb->ci->env) { - e = mrb_obj_alloc(mrb, MRB_TT_ENV, mrb->ci->proc->env); + e = mrb_obj_alloc(mrb, MRB_TT_ENV, (struct RClass *) mrb->ci->proc->env); e->flags= (unsigned int)irep->nlocals; e->mid = mrb->ci->mid; e->cioff = mrb->ci - mrb->cibase; |
