int and mrb_int should not be mixed under -DMRB_INT64; may fix #557

This commit is contained in:
Yukihiro Matz Matsumoto
2012-11-17 02:16:35 +09:00
parent f3191b943f
commit 7cea9d7b94
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -772,7 +772,7 @@ mrb_value
mrb_ary_first(mrb_state *mrb, mrb_value self)
{
struct RArray *a = mrb_ary_ptr(self);
int size;
mrb_int size;
if (mrb_get_args(mrb, "|i", &size) == 0) {
return (a->len > 0)? a->ptr[0]: mrb_nil_value();