summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index d8f787c029..a0dc6434ea 100644
--- a/array.c
+++ b/array.c
@@ -2884,7 +2884,7 @@ recursive_hash(VALUE ary, VALUE dummy, int recur)
VALUE n;
if (recur) {
- return LONG2FIX(0);
+ rb_raise(rb_eArgError, "recursive key for hash");
}
h = rb_hash_start(RARRAY_LEN(ary));
for (i=0; i<RARRAY_LEN(ary); i++) {