fix: src\vm.c(2631): warning C4244: '=': conversion from 'mrb_int' to 'int', possible loss of data

This commit is contained in:
Tomasz Dąbrowski
2017-09-25 16:48:04 +02:00
committed by Tomasz Dabrowski
parent 77d6a953ff
commit 999ce87129
+1 -1
View File
@@ -2628,7 +2628,7 @@ RETRY_TRY_BLOCK:
v = mrb_ary_new_from_values(mrb, 1, &regs[a]);
}
ary = mrb_ary_ptr(v);
len = ARY_LEN(ary);
len = (int)ARY_LEN(ary);
if (len > pre + post) {
v = mrb_ary_new_from_values(mrb, len - pre - post, ARY_PTR(ary)+pre);
regs[a++] = v;