summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/array.c b/array.c
index 509623c..3998f60 100644
--- a/array.c
+++ b/array.c
@@ -4131,6 +4131,7 @@ rb_ary_uniq(VALUE ary)
hash = ary_make_hash(ary);
uniq = rb_hash_keys(hash);
}
+ RBASIC_SET_CLASS(uniq, rb_obj_class(ary));
ary_recycle_hash(hash);
return uniq;