aboutsummaryrefslogtreecommitdiffstats
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 88a7e876f6..3c64944c76 100644
--- a/io.c
+++ b/io.c
@@ -5006,7 +5006,7 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
if (argc) {
int i;
- if (argc >= FIXNUM_MAX / sizeof(char *)) {
+ if (argc >= (int)(FIXNUM_MAX / sizeof(char *))) {
rb_raise(rb_eArgError, "too many arguments");
}
argbuf = rb_str_tmp_new((argc+1) * sizeof(char *));