diff options
author | Jean Boussier <[email protected]> | 2022-04-25 10:20:45 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2022-04-25 12:39:14 +0200 |
commit | 4fcc7e2d7c826da8b347ca547a603ccfc7f45ce0 (patch) | |
tree | f6515ccf7c1b331bea46737e989ff68462ce73b8 /io.c | |
parent | 392c952ab26797d130ff95aab84ecaac02978ec6 (diff) |
Fix ARGF#lineno to return Integer as documented
[Bug #18753]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5841
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9348,7 +9348,7 @@ argf_set_lineno(VALUE argf, VALUE val) { ARGF.lineno = NUM2INT(val); ARGF.last_lineno = ARGF.lineno; - return Qnil; + return val; } /* |