diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-05-09 16:14:21 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-05-09 16:14:21 +0000 |
commit | c14f70a6dbf5ac43e06e74b0035738f617a4540e (patch) | |
tree | 40b837bee09a9ac0e318d957cab5a7831dd7dfd8 /Objects/stringlib/eq.h | |
parent | 02ddff42380be032c59d02a3e45e8f96a4a57778 (diff) | |
download | cpython-c14f70a6dbf5ac43e06e74b0035738f617a4540e.tar.gz |
Recorded merge of revisions 81032 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines
Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
................
Diffstat (limited to 'Objects/stringlib/eq.h')
-rw-r--r-- | Objects/stringlib/eq.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Objects/stringlib/eq.h b/Objects/stringlib/eq.h index 4e989dce6d..3e7f5e86c6 100644 --- a/Objects/stringlib/eq.h +++ b/Objects/stringlib/eq.h @@ -6,16 +6,16 @@ Py_LOCAL_INLINE(int) unicode_eq(PyObject *aa, PyObject *bb) { - register PyUnicodeObject *a = (PyUnicodeObject *)aa; - register PyUnicodeObject *b = (PyUnicodeObject *)bb; + register PyUnicodeObject *a = (PyUnicodeObject *)aa; + register PyUnicodeObject *b = (PyUnicodeObject *)bb; - if (a->length != b->length) - return 0; - if (a->length == 0) - return 1; - if (a->str[0] != b->str[0]) - return 0; - if (a->length == 1) - return 1; - return memcmp(a->str, b->str, a->length * sizeof(Py_UNICODE)) == 0; + if (a->length != b->length) + return 0; + if (a->length == 0) + return 1; + if (a->str[0] != b->str[0]) + return 0; + if (a->length == 1) + return 1; + return memcmp(a->str, b->str, a->length * sizeof(Py_UNICODE)) == 0; } |