mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix one-by-one error of numbered parameter ID
This commit is contained in:
parent
081a44f586
commit
9a41d76b83
Notes:
git
2025-05-21 13:12:49 +00:00
2 changed files with 5 additions and 1 deletions
2
proc.c
2
proc.c
|
@ -507,7 +507,7 @@ bind_local_variables(VALUE bindval)
|
|||
int
|
||||
rb_numparam_id_p(ID id)
|
||||
{
|
||||
return (tNUMPARAM_1 << ID_SCOPE_SHIFT) <= id && id < ((tNUMPARAM_1 + 10) << ID_SCOPE_SHIFT);
|
||||
return (tNUMPARAM_1 << ID_SCOPE_SHIFT) <= id && id < ((tNUMPARAM_1 + 9) << ID_SCOPE_SHIFT);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue