Commit f5748e28 authored by Masaki Muranaka's avatar Masaki Muranaka Committed by Yukihiro Matz Matsumoto

Use ptrdiff_t instead of int. This is for portability.

parent 0425db66
......@@ -96,7 +96,7 @@ envadjust(mrb_state *mrb, mrb_value *oldbase, mrb_value *newbase)
while (ci <= mrb->ci) {
struct REnv *e = ci->env;
if (e && e->cioff >= 0) {
int off = e->stack - oldbase;
ptrdiff_t off = e->stack - oldbase;
e->stack = newbase + off;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment