Revision
2789
Author
neeracher@apple.com
Date
2009-10-13 16:38:08 -0700 (Tue, 13 Oct 2009)

Log Message

Survive str.isEqual(nil)

Modified Paths

Diff

Modified: MacRuby/trunk/string.c (2788 => 2789)


--- MacRuby/trunk/string.c	2009-10-13 23:34:59 UTC (rev 2788)
+++ MacRuby/trunk/string.c	2009-10-13 23:38:08 UTC (rev 2789)
@@ -5290,7 +5290,7 @@
 {
     bool flag;
     PREPARE_RCV(rcv);
-    flag = CFEqual((CFTypeRef)rcv, (CFTypeRef)other);    
+    flag = other && CFEqual((CFTypeRef)rcv, (CFTypeRef)other);    
     RESTORE_RCV(rcv);
     return flag;
 }