diff options
| author | take_cheeze <[email protected]> | 2014-04-01 01:35:40 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2014-04-01 01:35:40 +0900 |
| commit | b38eb72d829edc94c6a9f5d34bb6e5c102039cb5 (patch) | |
| tree | f58467de93e8ebe902aed1374caa831790f976eb /mrbgems/mruby-proc-ext/src/proc.c | |
| parent | 80534b6d14f1392ab1c199f0906880d61f55ae84 (diff) | |
| download | mruby-b38eb72d829edc94c6a9f5d34bb6e5c102039cb5.tar.gz mruby-b38eb72d829edc94c6a9f5d34bb6e5c102039cb5.zip | |
Add macro MRB_ENV_UNSHARE_STACK instead of assigning -1 directly.
Diffstat (limited to 'mrbgems/mruby-proc-ext/src/proc.c')
| -rw-r--r-- | mrbgems/mruby-proc-ext/src/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-proc-ext/src/proc.c b/mrbgems/mruby-proc-ext/src/proc.c index b4744fa1b..8b6ee4740 100644 --- a/mrbgems/mruby-proc-ext/src/proc.c +++ b/mrbgems/mruby-proc-ext/src/proc.c @@ -17,7 +17,7 @@ mrb_proc_new_cfunc_with_env(mrb_state *mrb, mrb_func_t f, mrb_int argc, const mr p->env = e; mrb_gc_arena_restore(mrb, ai); - e->cioff = -1; + MRB_ENV_UNSHARE_STACK(e); MRB_ENV_STACK_LEN(e) = argc; e->stack = (mrb_value*)mrb_malloc(mrb, sizeof(mrb_value) * argc); for (i = 0; i < argc; ++i) { |
