Skip to content

Commit 38762b3

Browse files
committed
address review: rename symbols in commentary to avoid clash with macro
1 parent 3ef5287 commit 38762b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/complexobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ real_to_complex(PyObject **pobj, Py_complex *pc)
614614
converted to floats. We have the following rules (up to variants with changed
615615
order of operands):
616616
617-
complex(x, y) + complex(u, v) = complex(x + u, y + v)
618-
float(x) + complex(u, v) = complex(x + u, v)
617+
complex(a, b) + complex(c, d) = complex(a + c, b + d)
618+
float(a) + complex(b, c) = complex(a + b, c)
619619
620620
Similar rules are implemented for subtraction, multiplication and division.
621621
See C11's Annex G, sections G.5.1 and G.5.2.

0 commit comments

Comments
 (0)