Revision: 2824 http://trac.macosforge.org/projects/ruby/changeset/2824 Author: neeracher@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; }
participants (1)
-
source_changes@macosforge.org