summaryrefslogtreecommitdiffhomepage
path: root/src/array.c
diff options
context:
space:
mode:
authorksss <[email protected]>2017-07-09 18:05:21 +0900
committerksss <[email protected]>2017-07-09 18:05:21 +0900
commitbf48473cf6c48fca74a81ca852734254646b3b57 (patch)
treec0de7bb53501ae2ed22dd975804189c0cf55529f /src/array.c
parentc76dc33116c1c43c0e151deceb85b66d33093c1c (diff)
downloadmruby-bf48473cf6c48fca74a81ca852734254646b3b57.tar.gz
mruby-bf48473cf6c48fca74a81ca852734254646b3b57.zip
Should only check frozen for Array#pop
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 ae2cca70c..f3d29faec 100644
--- a/src/array.c
+++ b/src/array.c
@@ -451,7 +451,7 @@ mrb_ary_pop(mrb_state *mrb, mrb_value ary)
{
struct RArray *a = mrb_ary_ptr(ary);
- ary_modify(mrb, a);
+ ary_modify_check(mrb, a);
if (a->len == 0) return mrb_nil_value();
return a->ptr[--a->len];
}