diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-01-01 01:15:38 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-01-02 17:48:44 +0900 |
| commit | f388b6d612158f4b08cd1bedb92dec8c50e5576d (patch) | |
| tree | df907c64c742f1c57e1348fb6609dbc787cd5134 | |
| parent | 158a6ab2ed64a448d7345d56d1d7430a9f52d4b8 (diff) | |
| download | mruby-f388b6d612158f4b08cd1bedb92dec8c50e5576d.tar.gz mruby-f388b6d612158f4b08cd1bedb92dec8c50e5576d.zip | |
use size_t instead of int
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 2 insertions, 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) |
