summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-08 06:22:51 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-08 06:22:51 +0000
commit3b2e898c148db562b57af7954bbfaf961d3b6267 (patch)
tree22470ff9bb6d7acaa39961f559e0f4096911604d /io.c
parent07b5db25da3e3567f62cfa602bef5dd071a3b91c (diff)
* 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
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 74ed5c74c5..1e77e5b4ba 100644
--- a/io.c
+++ b/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;
}