use logical rather than bit and

This commit is contained in:
Benjamin Peterson 2014-05-11 16:17:02 -07:00
parent 3428620b2b
commit 8c166055f9
1 changed files with 1 additions and 1 deletions

View File

@ -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'",