Skip to content

Commit

Permalink
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11465 b2dd03c8-39d4…
Browse files Browse the repository at this point in the history
…-4d8f-98ff-823fe69b080e
  • Loading branch information
ko1 committed Jan 4, 2007
1 parent 1e46ba3 commit a7911f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Thu Jan 04 10:30:11 2007 Koichi Sasada <ko1@atdot.net>

* benchmark/run_rite.rb (bm) : fix to use lines

Wed Jan 3 18:49:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>

* io.c (rb_io_getline): lineno update condition was wrong.
Expand Down
2 changes: 1 addition & 1 deletion benchmark/run_rite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def prepare_wc_input
prepare_wc_input

def bm file
prog = File.read(file).map{|e| e.rstrip}.join("\n")
prog = File.read(file).lines.map{|e| e.rstrip}.join("\n")
return if prog.empty?

/[a-z]+_(.+)\.rb/ =~ file
Expand Down

0 comments on commit a7911f5

Please sign in to comment.