aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/io.c b/io.c
index 8e1f1b826e..26af3ce6ef 100644
--- a/io.c
+++ b/io.c
@@ -145,13 +145,12 @@ struct timeval rb_time_interval(VALUE);
struct argf {
VALUE filename, current_file;
- int last_lineno; /* $. */
- int lineno;
- int init_p, next_p;
+ long last_lineno; /* $. */
+ long lineno;
VALUE argv;
char *inplace;
- int binmode;
struct rb_io_enc_t encs;
+ char init_p, next_p, binmode;
};
static int max_file_descriptor = NOFILE;
@@ -6945,7 +6944,7 @@ static VALUE
argf_getline(int argc, VALUE *argv, VALUE argf)
{
VALUE line;
- int lineno = ARGF.lineno;
+ long lineno = ARGF.lineno;
retry:
if (!next_argv()) return Qnil;
@@ -7176,7 +7175,7 @@ rb_f_readlines(int argc, VALUE *argv, VALUE recv)
static VALUE
argf_readlines(int argc, VALUE *argv, VALUE argf)
{
- int lineno = ARGF.lineno;
+ long lineno = ARGF.lineno;
VALUE lines, ary;
ary = rb_ary_new();