Revision: 2779 http://trac.macosforge.org/projects/ruby/changeset/2779 Author: lsansonetti@apple.com Date: 2009-10-09 23:25:33 -0700 (Fri, 09 Oct 2009) Log Message: ----------- fixed a bug in -[ByteString isEqual:]: the given object may not be a CFString Modified Paths: -------------- MacRuby/trunk/string.c Modified: MacRuby/trunk/string.c =================================================================== --- MacRuby/trunk/string.c 2009-10-10 02:38:44 UTC (rev 2778) +++ MacRuby/trunk/string.c 2009-10-10 06:25:33 UTC (rev 2779) @@ -5547,9 +5547,6 @@ // Can't resolve a character string based on that data. return false; } - if (CFStringGetLength(rcv_str) != CFStringGetLength(other)) { - return false; - } return CFEqual(rcv_str, (CFTypeRef)other); } }