fixed a bug in -[ByteString isEqual:]: the given object may not be a CFString
--- 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);
}
}