Skip to content

Commit

Permalink
* io.c (rb_io_each_byte): remove unused variable e.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Jul 30, 2011
1 parent 7f958b7 commit 4ac69a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sun Jul 31 01:29:08 2011 NARUSE, Yui <naruse@ruby-lang.org>

* io.c (rb_io_each_byte): remove unused variable e.

Sat Jul 31 01:23:45 2011 Kenta Murata <mrkn@mrkn.jp>

* test/bigdecimal/test_bigdecimal.rb (test_version): removed.
Expand Down
5 changes: 2 additions & 3 deletions io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2823,15 +2823,14 @@ static VALUE
rb_io_each_byte(VALUE io)
{
rb_io_t *fptr;
char *p, *e;

RETURN_ENUMERATOR(io, 0, 0);
GetOpenFile(io, fptr);

for (;;) {
while (fptr->rbuf.len > 0) {
p = fptr->rbuf.ptr + fptr->rbuf.off++;
e = p + fptr->rbuf.len--;
char *p = fptr->rbuf.ptr + fptr->rbuf.off++;
fptr->rbuf.len--;
rb_yield(INT2FIX(*p & 0xff));
errno = 0;
}
Expand Down

0 comments on commit 4ac69a5

Please sign in to comment.