summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-10-02 17:59:01 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-10-02 17:59:01 +0900
commit83992ee1632f426dff8f9c79709692bf6312403c (patch)
treee15ddd08230a5fc4b226d07570476892486d2664 /src/gc.c
parent906b62d50fa32395618175b0971bb0466dff9974 (diff)
downloadmruby-83992ee1632f426dff8f9c79709692bf6312403c.tar.gz
mruby-83992ee1632f426dff8f9c79709692bf6312403c.zip
cast MRB_ENV_STACK_LEN to (mrb_int); ref #2600
Diffstat (limited to 'src/gc.c')
-rw-r--r--src/gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gc.c b/src/gc.c
index 4c50b11da..8bd8243f1 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -532,9 +532,9 @@ gc_mark_children(mrb_state *mrb, struct RBasic *obj)
struct REnv *e = (struct REnv*)obj;
if (!MRB_ENV_STACK_SHARED_P(e)) {
- int i, len;
+ mrb_int i, len;
- len = (int)MRB_ENV_STACK_LEN(e);
+ len = MRB_ENV_STACK_LEN(e);
for (i=0; i<len; i++) {
mrb_gc_mark_value(mrb, e->stack[i]);
}