Skip to content

Commit 7bfdedb

Browse files
Update Python/bytecodes.c
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
1 parent 8559fb8 commit 7bfdedb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,8 @@ dummy_func(
801801
STAT_INC(BINARY_OP, hit);
802802
double dres = ((PyFloatObject *)left_o)->ob_fval + ((PyFloatObject *)right_o)->ob_fval;
803803
((PyFloatObject *)left_o)->ob_fval = dres;
804+
// Transfer ownership of left to res.
805+
// Original left is now dead.
804806
res = left;
805807
l = PyStackRef_NULL;
806808
r = right;

0 commit comments

Comments
 (0)