Skip to content

Commit f23146f

Browse files
committed
Fix enums in comparisons
1 parent 0691994 commit f23146f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

proc.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -1179,10 +1179,10 @@ rb_block_pair_yield_optimizable(void)
11791179
min = rb_vm_block_min_max_arity(&block, &max);
11801180

11811181
switch (vm_block_type(&block)) {
1182-
case block_handler_type_symbol:
1182+
case block_type_symbol:
11831183
return 0;
11841184

1185-
case block_handler_type_proc:
1185+
case block_type_proc:
11861186
{
11871187
VALUE procval = block_handler;
11881188
rb_proc_t *proc;
@@ -1192,7 +1192,7 @@ rb_block_pair_yield_optimizable(void)
11921192
return min > 1;
11931193
}
11941194

1195-
case block_handler_type_ifunc:
1195+
case block_type_ifunc:
11961196
{
11971197
const struct vm_ifunc *ifunc = block.as.captured.code.ifunc;
11981198
if (ifunc->flags & IFUNC_YIELD_OPTIMIZABLE) return 1;
@@ -1219,10 +1219,10 @@ rb_block_arity(void)
12191219
block_setup(&block, block_handler);
12201220

12211221
switch (vm_block_type(&block)) {
1222-
case block_handler_type_symbol:
1222+
case block_type_symbol:
12231223
return -1;
12241224

1225-
case block_handler_type_proc:
1225+
case block_type_proc:
12261226
return rb_proc_arity(block_handler);
12271227

12281228
default:

0 commit comments

Comments
 (0)