[macruby-changes] [3825] MacRuby/trunk/lib/stringio.rb

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 18 22:13:17 PDT 2010


Revision: 3825
          http://trac.macosforge.org/projects/ruby/changeset/3825
Author:   lsansonetti at apple.com
Date:     2010-03-18 22:13:17 -0700 (Thu, 18 Mar 2010)
Log Message:
-----------
fixed a bug in #putc to conform to ruby spec

Modified Paths:
--------------
    MacRuby/trunk/lib/stringio.rb

Modified: MacRuby/trunk/lib/stringio.rb
===================================================================
--- MacRuby/trunk/lib/stringio.rb	2010-03-19 04:24:19 UTC (rev 3824)
+++ MacRuby/trunk/lib/stringio.rb	2010-03-19 05:13:17 UTC (rev 3825)
@@ -594,7 +594,7 @@
       char = obj[0]
     else
       raise TypeError unless obj.respond_to?(:to_int)  
-      char = obj.to_int
+      char = obj.to_int % 256
     end
 
     if @append || pos == string.length
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100318/2aa31ce0/attachment.html>


More information about the macruby-changes mailing list