cpython: c6a8e7debbe5 (original) (raw)
Mercurial > cpython
changeset 68304:c6a8e7debbe5
avoid casting with this nice macro
Benjamin Peterson benjamin@python.org | |
---|---|
date | Sun, 06 Mar 2011 09:06:34 -0600 |
parents | 401e8882baf9 |
children | bb2a9ea5c7d0 |
files | Objects/unicodeobject.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-)[+] [-] Objects/unicodeobject.c 3 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -7358,8 +7358,7 @@ PyUnicode_RichCompare(PyObject *left, Py if (PyUnicode_Check(left) && PyUnicode_Check(right)) { PyObject *v;
if (((PyUnicodeObject *) left)->length !=[](#l1.7)
((PyUnicodeObject *) right)->length) {[](#l1.8)
if (PyUnicode_GET_SIZE(left) != PyUnicode_GET_SIZE(right)) {[](#l1.9) if (op == Py_EQ) {[](#l1.10) Py_INCREF(Py_False);[](#l1.11) return Py_False;[](#l1.12)