summaryrefslogtreecommitdiffstats
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
commitf7c9560d8ce020a828d1d8501dc5e158c146b412 (patch)
tree71ef957dd9c0248a5d9d35ebc7481e5ec8163d95 /array.c
parentf4436d968069dd10e5773d6747d79e160f1b3d19 (diff)
downloadruby-f7c9560d8ce020a828d1d8501dc5e158c146b412.tar.gz
ruby-f7c9560d8ce020a828d1d8501dc5e158c146b412.tar.xz
ruby-f7c9560d8ce020a828d1d8501dc5e158c146b412.zip
* 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: http://svn.ruby-lang.org/repos/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 4ba3f7390..c31e5fbc8 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 */