1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix ARGF#lineno to return Integer as documented

[Bug #18753]
This commit is contained in:
Jean Boussier 2022-04-25 10:20:45 +02:00
parent 392c952ab2
commit 4fcc7e2d7c
Notes: git 2022-04-25 19:39:46 +09:00

2
io.c
View file

@ -9348,7 +9348,7 @@ argf_set_lineno(VALUE argf, VALUE val)
{
ARGF.lineno = NUM2INT(val);
ARGF.last_lineno = ARGF.lineno;
return Qnil;
return val;
}
/*