summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-12 08:45:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-12 08:45:02 +0000
commit15a320a17acbba99adf7ba462b7344e4af85adf3 (patch)
treebdef1013f70635636ea9135899ee1dbc3572c578 /struct.c
parente3dc536712c747ed6a01042a9dc35b79db637544 (diff)
downloadruby-15a320a17acbba99adf7ba462b7344e4af85adf3.tar.gz
ruby-15a320a17acbba99adf7ba462b7344e4af85adf3.tar.xz
ruby-15a320a17acbba99adf7ba462b7344e4af85adf3.zip
* struct.c (rb_struct_select): fix typo.
* io.c (io_write): check error if written data is less than specified size to detect EPIPE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 7e97e170f..083bc83fe 100644
--- a/struct.c
+++ b/struct.c
@@ -540,7 +540,7 @@ rb_struct_select(argc, argv, s)
rb_raise(rb_eArgError, "wrong number arguments(%d for 0)", argc);
}
for (i = 0; i < RSTRUCT(s)->len; i++) {
- if (RTEST(rb_yield(RARRAY(s)->ptr[i]))) {
+ if (RTEST(rb_yield(RSTRUCT(s)->ptr[i]))) {
rb_ary_push(result, RSTRUCT(s)->ptr[i]);
}
}