Skip to content

Commit 564b959

Browse files
committed
Fix _TO_BOOL_INT to use insert mode for optimized uop
1 parent 53d8257 commit 564b959

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Python/optimizer_bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ dummy_func(void) {
392392
}
393393

394394
op(_TO_BOOL_INT, (value -- res, v)) {
395-
int already_bool = optimize_to_bool(this_instr, ctx, value, &res, false);
395+
int already_bool = optimize_to_bool(this_instr, ctx, value, &res, true);
396396
if (!already_bool) {
397397
sym_set_type(value, &PyLong_Type);
398398
res = sym_new_truthiness(ctx, value, true);

Python/optimizer_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)