Skip to content

Commit 6c33be4

Browse files
committed
Slight refactor
1 parent 24fd681 commit 6c33be4

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,13 +750,13 @@ dummy_func(
750750

751751
STAT_INC(BINARY_OP, hit);
752752
PyObject *res_o = PyUnicode_Concat(left_o, right_o);
753-
if (res_o == NULL) {
753+
res = PyStackRef_FromPyObjectSteal(res_o);
754+
if (PyStackRef_IsNull(res)) {
754755
ERROR_NO_POP();
755756
}
756757
l = left;
757758
r = right;
758759
INPUTS_DEAD();
759-
res = PyStackRef_FromPyObjectSteal(res_o);
760760
}
761761

762762
macro(BINARY_OP_ADD_UNICODE) =

Python/executor_cases.c.h

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/optimizer_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)