From 8c166055f9ce245b755175f41585af1e9a95f24c Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 11 May 2014 16:17:02 -0700 Subject: [PATCH] use logical rather than bit and --- Modules/operator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/operator.c b/Modules/operator.c index 7cbb45e7db..375592c1eb 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'", -- 2.50.1