[macruby-changes] [2824] MacRuby/trunk/string.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 15 18:27:39 PDT 2009
Revision: 2824
http://trac.macosforge.org/projects/ruby/changeset/2824
Author: neeracher at apple.com
Date: 2009-10-15 18:27:38 -0700 (Thu, 15 Oct 2009)
Log Message:
-----------
Fix style of NULL test
Modified Paths:
--------------
MacRuby/trunk/string.c
Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c 2009-10-16 01:24:02 UTC (rev 2823)
+++ MacRuby/trunk/string.c 2009-10-16 01:27:38 UTC (rev 2824)
@@ -5290,7 +5290,7 @@
{
bool flag;
PREPARE_RCV(rcv);
- flag = other && CFEqual((CFTypeRef)rcv, (CFTypeRef)other);
+ flag = (other != NULL) && 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/20091015/cd45d766/attachment.html>
More information about the macruby-changes
mailing list