summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-12-13 02:02:41 +0900
committerKoichi Sasada <ko1@atdot.net>2021-12-13 10:23:52 +0900
commitfdfb43b2b129afb78c352c95776118eeceb245a2 (patch)
tree9b06149bb01316743f685936bc7905703e41059f /proc.c
parent6659253cc6c807641e23d469b425ddcf18de7af4 (diff)
fix Struct's setter arity
https://github.com/ruby/ruby/pull/5131/files#diff-b2553d23e6b1fe76e20608d06c25f6acca06279100f1a9c24febcd79a82fac3cR2689
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5252
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index d0451244ce..cff8e9e7af 100644
--- a/proc.c
+++ b/proc.c
@@ -2684,7 +2684,7 @@ method_def_min_max_arity(const rb_method_definition_t *def, int *max)
return 0;
case OPTIMIZED_METHOD_TYPE_STRUCT_ASET:
*max = 1;
- return 0;
+ return 1;
default:
break;
}