summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/io.c b/io.c
index b836469..f6c0f89 100644
--- a/io.c
+++ b/io.c
@@ -1023,7 +1023,7 @@ io_s_popen(argc, argv, self)
}
else {
Check_Type(pmode, T_STRING);
- if (RSTRING(pmode)->len == 0 || RSTRING(pmode)->len > 2)
+ if (RSTRING(pmode)->len == 0 || RSTRING(pmode)->len > 3)
ArgError("illegal access mode");
mode = RSTRING(pmode)->ptr;
}
@@ -1058,7 +1058,7 @@ f_open(argc, argv, self)
}
else {
Check_Type(pmode, T_STRING);
- if (RSTRING(pmode)->len == 0 || RSTRING(pmode)->len > 2)
+ if (RSTRING(pmode)->len == 0 || RSTRING(pmode)->len > 3)
ArgError("illegal access mode");
mode = RSTRING(pmode)->ptr;
}
@@ -1246,9 +1246,6 @@ io_print(argc, argv, out)
case T_ARRAY:
ary_print_on(argv[i], out);
break;
- case T_HASH:
- break;
- case T_STRING:
default:
io_write(out, argv[i]);
break;