projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21cdfb9
)
comment
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 11 Nov 2010 12:46:04 +0000
(13:46 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 11 Nov 2010 12:46:04 +0000
(13:46 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 4a103af49b33804eb1f7d79af8895acd2bd9fc9c..f0a68bb8a2c8e1e6e0b4a19ca91a7d6f0a9d1cd7 100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-6325,7
+6325,7
@@
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int
""",
impl="""
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
- if (s1 == s2) { /* as done by PyObject_RichCompareBool() */
+ if (s1 == s2) { /* as done by PyObject_RichCompareBool()
; also catches the (interned) empty string
*/
return (equals == Py_EQ);
} else if (PyUnicode_CheckExact(s1) & PyUnicode_CheckExact(s2)) {
if (PyUnicode_GET_SIZE(s1) != PyUnicode_GET_SIZE(s2)) {