[macruby-changes] [2779] MacRuby/trunk/string.c

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 9 23:25:34 PDT 2009


Revision: 2779
          http://trac.macosforge.org/projects/ruby/changeset/2779
Author:   lsansonetti at 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);
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091009/3ac0126c/attachment.html>


More information about the macruby-changes mailing list