summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-23 13:52:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-23 13:52:19 +0000
commit3d4376d16777cb97ebd1d12e338462ef7311223e (patch)
tree71ef957dd9c0248a5d9d35ebc7481e5ec8163d95 /array.c
parent616a75e7e3db6a6c343f292e19d5afd531a2dc00 (diff)
* array.c (rb_ary_s_create): no need for negative argc check.
[ruby-core:04463] * array.c (rb_ary_unshift_m): ditto. * lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass of StandardError class, not Exception class. [ruby-core:04429] * lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE. fixed: [ruby-core:04444] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/array.c b/array.c
index 4ba3f73..c31e5fb 100644
--- a/array.c
+++ b/array.c
@@ -334,9 +334,6 @@ rb_ary_s_create(argc, argv, klass)
{
VALUE ary = ary_alloc(klass);
- if (argc < 0) {
- rb_raise(rb_eArgError, "negative number of arguments");
- }
if (argc > 0) {
RARRAY(ary)->ptr = ALLOC_N(VALUE, argc);
MEMCPY(RARRAY(ary)->ptr, argv, VALUE, argc);
@@ -552,9 +549,6 @@ rb_ary_unshift_m(argc, argv, ary)
{
long len = RARRAY(ary)->len;
- if (argc < 0) {
- rb_raise(rb_eArgError, "negative number of arguments");
- }
if (argc == 0) return ary;
/* make rooms by setting the last item */