mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
int and mrb_int should not be mixed under -DMRB_INT64; may fix #557
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user