Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't raise an exception when comparing an NSDictionary with a non-one

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4522 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
commit 72b8cbff174cc9f84d64441693826dba864da4d6 1 parent 47cbb12
Laurent Sansonetti authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  NSDictionary.m
View
3  NSDictionary.m
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.