[Bug #22284] Let NUM2INT handle Fixnum arity of curry

NUM2INT already takes the Fixnum path by itself.
This commit is contained in:
Hiroshi SHIBATA authored and Takashi Kokubun committed 2026-10-09 16:07:20 -07:00
1 parent 1328590e45
commit 18e7b33cf4
1 file changed
+1 -1
+1 -1
View File
@@ -3855,7 +3855,7 @@ proc_curry(int argc, const VALUE *argv, VALUE self)
arity = INT2FIX(min_arity);
}
else {
sarity = FIXNUM_P(arity) ? FIX2INT(arity) : NUM2INT(arity);
sarity = NUM2INT(arity);
if (rb_proc_lambda_p(self)) {
rb_check_arity(sarity, min_arity, max_arity);
}