From c46468d77315475c25d68f30dacfccdf1b08498f Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 20 Feb 2002 04:31:50 +0000 Subject: * hash.c (rb_any_cmp): should handle Qundef in keys. * eval.c (remove_method): should not remove a empty method to implement "undef". * eval.c (rb_eval): should allow singleton class def for true/false/nil. * parse.y (str_extend): backslash escape was done wrong. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 8234db2b25..dda50abe12 100644 --- a/hash.c +++ b/hash.c @@ -70,6 +70,7 @@ rb_any_cmp(a, b) if (SYMBOL_P(a) && SYMBOL_P(b)) { return a != b; } + if (a == Qundef || b == Qundef) return -1; args[0] = a; args[1] = b; -- cgit v1.2.3