Project

General

Profile

Actions

Bug #8703

closed

hash_type is not duplicated if hash is empty

Added by Glass_saga (Masaki Matsushita) over 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 2.1.0dev (2013-07-29 trunk 42224) [x86_64-linux]
[ruby-core:56256]

Description

{}.compare_by_identity.dup.compare_by_identity? #=> false
{1=>1}.compare_by_identity.dup.compare_by_identity? #=> true

I think it is a bug.


Files

patch.diff (449 Bytes) patch.diff Glass_saga (Masaki Matsushita), 07/29/2013 04:30 PM
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r42227.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


hash.c: copied identhash

Updated by usa (Usaku NAKAMURA) almost 9 years ago

  • Backport changed from 1.9.3: REQUIRED, 2.0.0: REQUIRED to 1.9.3: DONTNEED, 2.0.0: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) almost 9 years ago

  • Backport changed from 1.9.3: DONTNEED, 2.0.0: REQUIRED to 1.9.3: DONTNEED, 2.0.0: DONE

r42224, r42225, r42226, r42227, r42228, r42229 and r42232 were backported to ruby_2_0_0 at 44979.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0