summaryrefslogtreecommitdiffhomepage
path: root/src/array.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2012-11-17 02:16:35 +0900
committerYukihiro Matz Matsumoto <[email protected]>2012-11-17 02:16:35 +0900
commit7cea9d7b945a4b00cef699f47c07654f8b7bd579 (patch)
treed22dbb5c1a8c9c5d84b337e8e9df64c4327dae35 /src/array.c
parentf3191b943ff59506a920b7e3bc54a3bfcb25b4d4 (diff)
downloadmruby-7cea9d7b945a4b00cef699f47c07654f8b7bd579.tar.gz
mruby-7cea9d7b945a4b00cef699f47c07654f8b7bd579.zip
int and mrb_int should not be mixed under -DMRB_INT64; may fix #557
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 a200de3aa..ea461e029 100644
--- a/src/array.c
+++ b/src/array.c
@@ -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();