[macruby-changes] [2789] MacRuby/trunk/string.c
source_changes at macosforge.org
source_changes at macosforge.org
Tue Oct 13 16:38:09 PDT 2009
Revision: 2789
http://trac.macosforge.org/projects/ruby/changeset/2789
Author: neeracher at apple.com
Date: 2009-10-13 16:38:08 -0700 (Tue, 13 Oct 2009)
Log Message:
-----------
Survive str.isEqual(nil)
Modified Paths:
--------------
MacRuby/trunk/string.c
Modified: MacRuby/trunk/string.c
===================================================================
--- 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;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091013/deedaf1f/attachment.html>
More information about the macruby-changes
mailing list