Skip to content
Permalink
Browse files
use size_t instead of int
  • Loading branch information
matz committed Jan 2, 2017
1 parent 158a6ab commit f388b6d612158f4b08cd1bedb92dec8c50e5576d
Showing 1 changed file with 2 additions and 2 deletions.
@@ -134,8 +134,8 @@ static void
stack_extend_alloc(mrb_state *mrb, int room, int keep)
{
mrb_value *oldbase = mrb->c->stbase;
int size = mrb->c->stend - mrb->c->stbase;
int off = mrb->c->stack - mrb->c->stbase;
size_t size = mrb->c->stend - mrb->c->stbase;
size_t off = mrb->c->stack - mrb->c->stbase;

#ifdef MRB_STACK_EXTEND_DOUBLING
if (room <= size)

0 comments on commit f388b6d

Please sign in to comment.