[macruby-changes] [3643] MacRuby/branches/icu/string.c

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 26 19:12:56 PST 2010


Revision: 3643
          http://trac.macosforge.org/projects/ruby/changeset/3643
Author:   lsansonetti at apple.com
Date:     2010-02-26 19:12:52 -0800 (Fri, 26 Feb 2010)
Log Message:
-----------
fixed comparison of 2 empty strings

Modified Paths:
--------------
    MacRuby/branches/icu/string.c

Modified: MacRuby/branches/icu/string.c
===================================================================
--- MacRuby/branches/icu/string.c	2010-02-27 02:41:34 UTC (rev 3642)
+++ MacRuby/branches/icu/string.c	2010-02-27 03:12:52 UTC (rev 3643)
@@ -835,7 +835,7 @@
     if (self->length_in_bytes == 0) {
 	if (str->length_in_bytes == 0) {
 	    // both strings are empty
-	    goto bad_length;
+	    return 0;
 	}
 	else {
 	    // only self is empty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100226/09539ad6/attachment.html>


More information about the macruby-changes mailing list