diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-08 13:10:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-08 13:10:04 +0000 |
commit | 244398acccc1068be3ec7518ee53ad159dafc88e (patch) | |
tree | 87743fd1893484f1af704d20e3695810ea21a893 /io.c | |
parent | dad2844df90b2834171e95c0a17d90d0180e4929 (diff) | |
download | ruby-244398acccc1068be3ec7518ee53ad159dafc88e.tar.gz ruby-244398acccc1068be3ec7518ee53ad159dafc88e.tar.xz ruby-244398acccc1068be3ec7518ee53ad159dafc88e.zip |
* include/ruby/st.h (st_hash_func): use st_index_t.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6750,6 +6750,7 @@ static VALUE argf_getline(int argc, VALUE *argv, VALUE argf) { VALUE line; + int lineno = ARGF.lineno; retry: if (!next_argv()) return Qnil; @@ -6770,7 +6771,7 @@ argf_getline(int argc, VALUE *argv, VALUE argf) } } if (!NIL_P(line)) { - ARGF.lineno++; + ARGF.lineno = ++lineno; ARGF.last_lineno = ARGF.lineno; } return line; |