Skip to content

Commit 2124c57

Browse files
jhawthornparacycle
authored andcommitted
Fix check in cc_is_active
rb_vm_empty_cc_for_super() is always true, so this previously always returned false.
1 parent 8f56f5d commit 2124c57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

iseq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static bool
343343
cc_is_active(const struct rb_callcache *cc, bool reference_updating)
344344
{
345345
if (cc) {
346-
if (cc == rb_vm_empty_cc() || rb_vm_empty_cc_for_super()) {
346+
if (cc == rb_vm_empty_cc() || cc == rb_vm_empty_cc_for_super()) {
347347
return false;
348348
}
349349

0 commit comments

Comments
 (0)