summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-02 11:38:20 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-02 11:38:20 +0000
commit765255b737235a65daea6679c4672541bb67ecb4 (patch)
tree5ea517fae24a858cd204bbbe20e6d695c6472eae /range.c
parente9f9915a4c305ac02d8634b14579119433bc7b43 (diff)
* array.c (rb_ary_sort_bang): returns self, even if its length is
less than 2. * eval.c (POP_VARS): propagate DVAR_DONT_RECYCLE, if SCOPE_DONT_RECYCLE of ruby_scope is set. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/range.c b/range.c
index 68229b7..2ad20df 100644
--- a/range.c
+++ b/range.c
@@ -68,14 +68,14 @@ range_initialize(argc, argv, obj)
VALUE *argv;
VALUE obj;
{
- VALUE beg, end, flag;
+ VALUE beg, end, flags;
- rb_scan_args(argc, argv, "21", &beg, &end, &flag);
+ rb_scan_args(argc, argv, "21", &beg, &end, &flags);
/* Ranges are immutable, so that they should be initialized only once. */
if (rb_ivar_defined(obj, id_beg)) {
rb_raise(rb_eNameError, "`initialize' called twice");
}
- range_init(obj, beg, end, RTEST(flag));
+ range_init(obj, beg, end, RTEST(flags));
return Qnil;
}