mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* marshal.c (r_byte): IO#getc returns one byte string now.
fixed: [ruby-dev:29255] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f2cc277216
commit
81b5dcb2a1
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Aug 16 17:46:59 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* marshal.c (r_byte): IO#getc returns one byte string now.
|
||||||
|
fixed: [ruby-dev:29255]
|
||||||
|
|
||||||
Wed Aug 16 17:22:44 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Aug 16 17:22:44 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* common.mk (pre-install-local): remove unnecessary code.
|
* common.mk (pre-install-local): remove unnecessary code.
|
||||||
|
|
|
@ -757,7 +757,7 @@ r_byte(struct load_arg *arg)
|
||||||
VALUE src = arg->src;
|
VALUE src = arg->src;
|
||||||
VALUE v = rb_funcall2(src, s_getc, 0, 0);
|
VALUE v = rb_funcall2(src, s_getc, 0, 0);
|
||||||
if (NIL_P(v)) rb_eof_error();
|
if (NIL_P(v)) rb_eof_error();
|
||||||
c = (unsigned char)FIX2INT(v);
|
c = (unsigned char)NUM2CHR(v);
|
||||||
}
|
}
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue