diff options
| author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-15 04:20:46 +0000 |
|---|---|---|
| committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-15 04:20:46 +0000 |
| commit | 625e48e720d72a7959815a78d6a4d3ce89d8d56d (patch) | |
| tree | 67826d260d299bc16de16604fc7e48b85e353638 /hash.c | |
| parent | 1288dc298ea81bc2a775950ad6d198575b1891a5 (diff) | |
| download | ruby-625e48e720d72a7959815a78d6a4d3ce89d8d56d.tar.gz ruby-625e48e720d72a7959815a78d6a4d3ce89d8d56d.tar.xz ruby-625e48e720d72a7959815a78d6a4d3ce89d8d56d.zip | |
* complex.c (nucomp_eql_p): new.
* complex.c (nucomp_hash): should use hash values of the elements.
* rational.c (nurat_hash): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
| -rw-r--r-- | hash.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -39,8 +39,6 @@ static ID id_hash, id_yield, id_default; static int rb_any_cmp(VALUE a, VALUE b) { - VALUE args[2]; - if (a == b) return 0; if (FIXNUM_P(a) && FIXNUM_P(b)) { return a != b; @@ -54,8 +52,6 @@ rb_any_cmp(VALUE a, VALUE b) return a != b; } - args[0] = a; - args[1] = b; return !rb_eql(a, b); } |
