diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-11-11 04:08:26 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-11-11 04:08:26 +0000 |
| commit | 2ee41de2e5c334d14f8896952e9d5f4ded94fd59 (patch) | |
| tree | f0362f6fb9278b4bf59a2a117fd839ce259f1744 /hash.c | |
| parent | a7ae9b912e4cfbbedf7b54f10706824e49d9b100 (diff) | |
| download | ruby-2ee41de2e5c334d14f8896952e9d5f4ded94fd59.tar.gz ruby-2ee41de2e5c334d14f8896952e9d5f4ded94fd59.tar.xz ruby-2ee41de2e5c334d14f8896952e9d5f4ded94fd59.zip | |
19991111
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
| -rw-r--r-- | hash.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -79,19 +79,17 @@ static int rb_any_cmp(a, b) VALUE a, b; { + VALUE args[2]; if (FIXNUM_P(a)) { if (FIXNUM_P(b)) return a != b; } else if (TYPE(a) == T_STRING) { if (TYPE(b) == T_STRING) return rb_str_cmp(a, b); } - else { - VALUE args[2]; - args[0] = a; - args[1] = b; - return !rb_with_disable_interrupt(eql, (VALUE)args); - } + args[0] = a; + args[1] = b; + return !rb_with_disable_interrupt(eql, (VALUE)args); } static int |
