projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ade78ce
)
fix bytes comparison fallback
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 29 Apr 2011 17:28:57 +0000
(19:28 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 29 Apr 2011 17:28:57 +0000
(19:28 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 848a2f5a410ef1cf35e678c2f95be8572300a500..4a36a2ce354c45634f8b20dff8baa895a59cf595 100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-6908,12
+6908,13
@@
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int eq
return (PyBytes_AS_STRING(s1)[0] == PyBytes_AS_STRING(s2)[0]);
else
return (PyBytes_AS_STRING(s1)[0] != PyBytes_AS_STRING(s2)[0]);
- }
+ }
/* else: fall back to PyObject_RichCompare() below */
} else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
return (equals == Py_NE);
} else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
return (equals == Py_NE);
- } else {
+ }
+ {
int result;
PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
if (!py_result)