commit | 8c166055f9ce245b755175f41585af1e9a95f24c | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun May 11 16:17:02 2014 -0700 |
committer | Benjamin Peterson <benjamin@python.org> | Sun May 11 16:17:02 2014 -0700 |
tree | 3086af61784f3ff4d8b57ceb85570ddaa418295a | |
parent | 3428620b2b5baeddf3949caf9de468038dbac21a [diff] [blame] |
use logical rather than bit and
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 @@ 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'",