diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-04 07:27:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-04 07:27:43 +0000 |
commit | 1d5e19f624bc09d66d80ec7bc89db9dbc895b477 (patch) | |
tree | 1da218e880df1362e1985a6ab7693ad5dcfc920e /io.c | |
parent | c46774cdb34e30241d49393c43be254a9bdfd060 (diff) | |
download | ruby-1d5e19f624bc09d66d80ec7bc89db9dbc895b477.tar.gz |
* array.c (rb_ary_equal): a == b is true when b is non T_ARRAY
object, if b has "to_ary" and b == a.
* hash.c (rb_hash_equal): a == b is true when b is non T_HASH
object, if b has "to_hash" and b == a.
* string.c (rb_str_equal): a == b is true when b is non T_STRING
object, if b has "to_str" and b == a.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -3037,9 +3037,10 @@ argf_getline(argc, argv) next_p = 1; goto retry; } - gets_lineno++; - lineno = INT2FIX(gets_lineno); - + if (!NIL_P(line)) { + gets_lineno++; + lineno = INT2FIX(gets_lineno); + } return line; } |