[macruby-changes] [4062] MacRuby/trunk/string.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon May 10 17:52:16 PDT 2010
Revision: 4062
http://trac.macosforge.org/projects/ruby/changeset/4062
Author: psychs at limechat.net
Date: 2010-05-10 17:52:12 -0700 (Mon, 10 May 2010)
Log Message:
-----------
call str_make_data_binary in the head of each_byte
Modified Paths:
--------------
MacRuby/trunk/string.c
Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c 2010-05-11 00:00:28 UTC (rev 4061)
+++ MacRuby/trunk/string.c 2010-05-11 00:52:12 UTC (rev 4062)
@@ -4788,6 +4788,8 @@
static VALUE
rstr_each_byte(VALUE str, SEL sel)
{
+ str_make_data_binary(RSTR(str));
+
RETURN_ENUMERATOR(str, 0, 0);
for (long i = 0; i < RSTR(str)->length_in_bytes; i++) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100510/5281b06a/attachment.html>
More information about the macruby-changes
mailing list