summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-05-11 23:17:02 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-05-11 23:17:02 (GMT)
commit8c166055f9ce245b755175f41585af1e9a95f24c (patch)
tree3086af61784f3ff4d8b57ceb85570ddaa418295a
parent3428620b2b5baeddf3949caf9de468038dbac21a (diff)
downloadcpython-8c166055f9ce245b755175f41585af1e9a95f24c.zip
cpython-8c166055f9ce245b755175f41585af1e9a95f24c.tar.gz
cpython-8c166055f9ce245b755175f41585af1e9a95f24c.tar.bz2
use logical rather than bit and
-rw-r--r--Modules/operator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/operator.c b/Modules/operator.c
index 7cbb45e..375592c 100644
--- a/Modules/operator.c
+++ b/Modules/operator.c
@@ -319,7 +319,7 @@ compare_digest(PyObject *self, PyObject *args)
Py_buffer view_a;
Py_buffer view_b;
- if ((PyObject_CheckBuffer(a) == 0) & (PyObject_CheckBuffer(b) == 0)) {
+ if (PyObject_CheckBuffer(a) == 0 && PyObject_CheckBuffer(b) == 0) {
PyErr_Format(PyExc_TypeError,
"unsupported operand types(s) or combination of types: "
"'%.100s' and '%.100s'",