Skip to content

Commit

Permalink
use size_t instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Jan 2, 2017
1 parent 158a6ab commit f388b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f388b6d

Please sign in to comment.