Skip to content

Commit 542e4dd

Browse files
committed
Use TO_BOOL for SPECIALIZATION_FAIL
1 parent 6bc4c90 commit 542e4dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/specialize.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2744,11 +2744,11 @@ _Py_Specialize_ToBool(_PyStackRef value_o, _Py_CODEUNIT *instr)
27442744
unsigned int version = 0;
27452745
int err = _PyType_Validate(Py_TYPE(value), check_type_always_true, &version);
27462746
if (err < 0) {
2747-
SPECIALIZATION_FAIL(instr, SPEC_FAIL_OUT_OF_VERSIONS);
2747+
SPECIALIZATION_FAIL(TO_BOOL, SPEC_FAIL_OUT_OF_VERSIONS);
27482748
goto failure;
27492749
}
27502750
else if (err > 0) {
2751-
SPECIALIZATION_FAIL(instr, err);
2751+
SPECIALIZATION_FAIL(TO_BOOL, err);
27522752
goto failure;
27532753
}
27542754

@@ -2759,7 +2759,7 @@ _Py_Specialize_ToBool(_PyStackRef value_o, _Py_CODEUNIT *instr)
27592759
goto success;
27602760
}
27612761

2762-
SPECIALIZATION_FAIL(instr, to_bool_fail_kind(value));
2762+
SPECIALIZATION_FAIL(TO_BOOL, to_bool_fail_kind(value));
27632763
failure:
27642764
unspecialize(instr);
27652765
return;

0 commit comments

Comments
 (0)