Use ptrdiff_t to suppress signedness warning

3df3216179 says so but there is no warning
with GCC 4.9 on my Debian GNU/Linux environment.
This commit is contained in:
Kouhei Sutou
2015-02-28 15:30:18 +09:00
parent 414678d61a
commit 42359d6241
+1 -1
View File
@@ -220,7 +220,7 @@ cipush(mrb_state *mrb)
int ridx = ci->ridx;
if (ci + 1 == c->ciend) {
size_t size = ci - c->cibase;
ptrdiff_t size = ci - c->cibase;
c->cibase = (mrb_callinfo *)mrb_realloc(mrb, c->cibase, sizeof(mrb_callinfo)*size*2);
c->ci = c->cibase + size;