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

source_changes at macosforge.org source_changes at macosforge.org
Tue Jun 1 21:15:01 PDT 2010


Revision: 4191
          http://trac.macosforge.org/projects/ruby/changeset/4191
Author:   lsansonetti at apple.com
Date:     2010-06-01 21:14:57 -0700 (Tue, 01 Jun 2010)
Log Message:
-----------
vincent is always right

Modified Paths:
--------------
    MacRuby/trunk/string.c

Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c	2010-06-02 03:54:58 UTC (rev 4190)
+++ MacRuby/trunk/string.c	2010-06-02 04:14:57 UTC (rev 4191)
@@ -1771,6 +1771,7 @@
 static VALUE
 rstr_to_data(VALUE self, SEL sel)
 {
+    str_make_data_binary(RSTR(self));
     CFDataRef data = CFDataCreate(NULL, (const UInt8 *)RSTR(self)->data.bytes,
 	    RSTR(self)->length_in_bytes); 
     CFMakeCollectable(data);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100601/b0a5e718/attachment.html>


More information about the macruby-changes mailing list