[Python-checkins] cpython: avoid casting with this nice macro (original) (raw)
benjamin.peterson python-checkins at python.org
Sun Mar 6 16:04:59 CET 2011
- Previous message: [Python-checkins] cpython (2.7): Convert DOS files to CRLF. This doesn't touch the .hgeol settings, so that the
- Next message: [Python-checkins] hooks: New subject scheme for notification emails
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
http://hg.python.org/cpython/rev/c6a8e7debbe5 changeset: 68304:c6a8e7debbe5 parent: 68302:401e8882baf9 user: Benjamin Peterson <benjamin at python.org> date: Sun Mar 06 09:06:34 2011 -0600 summary: avoid casting with this nice macro
files: Objects/unicodeobject.c
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -7358,8 +7358,7 @@
if (PyUnicode_Check(left) && PyUnicode_Check(right)) {
PyObject *v;
if (((PyUnicodeObject *) left)->length !=
((PyUnicodeObject *) right)->length) {
if (PyUnicode_GET_SIZE(left) != PyUnicode_GET_SIZE(right)) { if (op == Py_EQ) { Py_INCREF(Py_False); return Py_False;
-- Repository URL: http://hg.python.org/cpython
- Previous message: [Python-checkins] cpython (2.7): Convert DOS files to CRLF. This doesn't touch the .hgeol settings, so that the
- Next message: [Python-checkins] hooks: New subject scheme for notification emails
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]