mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #3637 from dabroz/fix-32-bit
Restore 32-bit OSX builds
This commit is contained in:
@@ -118,16 +118,16 @@ static inline void
|
||||
envadjust(mrb_state *mrb, mrb_value *oldbase, mrb_value *newbase)
|
||||
{
|
||||
mrb_callinfo *ci = mrb->c->cibase;
|
||||
ptrdiff_t off;
|
||||
|
||||
if (newbase == oldbase) return;
|
||||
off = newbase - oldbase;
|
||||
while (ci <= mrb->c->ci) {
|
||||
struct REnv *e = ci->env;
|
||||
if (e && MRB_ENV_STACK_SHARED_P(e)) {
|
||||
e->stack += off;
|
||||
ptrdiff_t off = e->stack - oldbase;
|
||||
|
||||
e->stack = newbase + off;
|
||||
}
|
||||
ci->stackent += off;
|
||||
ci->stackent = newbase + (ci->stackent - oldbase);
|
||||
ci++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user