[macruby-changes] [4061] MacRuby/trunk/string.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon May 10 17:00:29 PDT 2010
Revision: 4061
http://trac.macosforge.org/projects/ruby/changeset/4061
Author: psychs at limechat.net
Date: 2010-05-10 17:00:28 -0700 (Mon, 10 May 2010)
Log Message:
-----------
each_byte should return positive numbers
Modified Paths:
--------------
MacRuby/trunk/string.c
Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c 2010-05-10 23:58:20 UTC (rev 4060)
+++ MacRuby/trunk/string.c 2010-05-11 00:00:28 UTC (rev 4061)
@@ -4791,7 +4791,7 @@
RETURN_ENUMERATOR(str, 0, 0);
for (long i = 0; i < RSTR(str)->length_in_bytes; i++) {
- rb_yield(INT2FIX(RSTR(str)->data.bytes[i]));
+ rb_yield(INT2FIX((unsigned char)RSTR(str)->data.bytes[i]));
RETURN_IF_BROKEN();
}
return str;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100510/1bc709da/attachment-0001.html>
More information about the macruby-changes
mailing list