mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (io_fwrite): change dereference for cosmetic reason.
* sprintf.c (rb_f_sprintf): [ruby-dev:25104] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
07b5db25da
commit
3b2e898c14
3 changed files with 8 additions and 10 deletions
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,9 @@
|
|||
Wed Dec 8 14:31:36 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* io.c (io_fwrite): change dereference for cosmetic reason.
|
||||
|
||||
* sprintf.c (rb_f_sprintf): [ruby-dev:25104]
|
||||
|
||||
Tue Dec 7 19:08:00 2004 Akiyoshi, Masamichi <akiyoshi@hp.com>
|
||||
|
||||
* io.c (io_fwrite): fix offset incrementation (for VMS and Human68k)
|
||||
|
@ -69,15 +75,6 @@ Sat Dec 4 22:54:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|||
* hash.c (rb_hash_hash): should provide "hash" method where "eql?"
|
||||
is redefined. [ruby-talk:122482]
|
||||
|
||||
Sat Dec 4 00:35:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/socket/socket.c (bsock_setsockopt): [ruby-dev:25039]
|
||||
|
||||
Sat Dec 4 22:54:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* hash.c (rb_hash_hash): should provide "hash" method where "eql?"
|
||||
is redefined. [ruby-talk:122482]
|
||||
|
||||
Sat Dec 4 14:54:52 2004 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* eval.c (proc_invoke): use volatile `tmp' rather than `args'.
|
||||
|
|
2
io.c
2
io.c
|
@ -417,7 +417,7 @@ io_fwrite(str, fptr)
|
|||
}
|
||||
#if defined(__human68k__) || defined(__vms)
|
||||
do {
|
||||
if (fputc(*(RSTRING(str)->ptr+(offset++)), f) == EOF) {
|
||||
if (fputc(RSTRING(str)->ptr[offset++], f) == EOF) {
|
||||
if (ferror(f)) return -1L;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -249,6 +249,7 @@ rb_f_sprintf(argc, argv)
|
|||
fmt = GETNTHARG(0);
|
||||
if (OBJ_TAINTED(fmt)) tainted = 1;
|
||||
StringValue(fmt);
|
||||
fmt = rb_str_new4(fmt);
|
||||
p = RSTRING(fmt)->ptr;
|
||||
end = p + RSTRING(fmt)->len;
|
||||
blen = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue