summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
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 cb24b283d2..ebf5743d37 100644
--- a/io.c
+++ b/io.c
@@ -1678,7 +1678,7 @@ io_writev(int argc, VALUE *argv, VALUE io)
static VALUE
io_write_m(int argc, VALUE *argv, VALUE io)
{
- if (argc > 1) {
+ if (argc != 1) {
return io_writev(argc, argv, io);
}
else {