don't raise an exception when comparing an NSDictionary with a non-one
--- MacRuby/trunk/NSDictionary.m 2010-09-17 08:31:11 UTC (rev 4521)
+++ MacRuby/trunk/NSDictionary.m 2010-09-17 21:19:08 UTC (rev 4522)
@@ -118,6 +118,9 @@
static VALUE
nshash_equal(id rcv, SEL sel, id other)
{
+ if (![other isKindOfClass:(id)rb_cNSHash]) {
+ return Qfalse;
+ }
return [rcv isEqualToDictionary:other] ? Qtrue : Qfalse;
}