summaryrefslogtreecommitdiffhomepage
path: root/src/array.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-04-25 21:00:16 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-04-25 21:00:16 +0900
commit3e07a2d77c5c2979e35e4f40475c6d6758669d04 (patch)
tree011be80a9249e69558d93a6de0e98c6dee9b3799 /src/array.c
parent92dcfbaab38f3d848dcbd13c84be32d9f70f6e4a (diff)
downloadmruby-3e07a2d77c5c2979e35e4f40475c6d6758669d04.tar.gz
mruby-3e07a2d77c5c2979e35e4f40475c6d6758669d04.zip
Silence warnings caused by implicit type casting.
Diffstat (limited to 'src/array.c')
-rw-r--r--src/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.c b/src/array.c
index 67cae92eb..3ab74f95d 100644
--- a/src/array.c
+++ b/src/array.c
@@ -192,7 +192,7 @@ ary_expand_capa(mrb_state *mrb, struct RArray *a, size_t len)
if (capa > (size_t)a->aux.capa) {
mrb_value *expanded_ptr = (mrb_value *)mrb_realloc(mrb, a->ptr, sizeof(mrb_value)*capa);
- a->aux.capa = capa;
+ a->aux.capa = (mrb_int)capa;
a->ptr = expanded_ptr;
}
}