summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-08-22 19:55:54 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-08-22 19:55:54 (GMT)
commita27a62e74caece828fd34c6247dae8870f52d194 (patch)
tree934d851d1342b6240e6ac1e59776a3ec1320c5d5 /Modules/_sqlite
parent7d4c3177d541bb65d2d98aae165b0be9186e74f6 (diff)
downloadcpython-a27a62e74caece828fd34c6247dae8870f52d194.zip
cpython-a27a62e74caece828fd34c6247dae8870f52d194.tar.gz
cpython-a27a62e74caece828fd34c6247dae8870f52d194.tar.bz2
Silenced a compiler warning in the sqlite module
Modules/_sqlite/row.c:187: warning: suggest parentheses around && within || Reviewed by Benjamin Peterson
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/row.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/row.c b/Modules/_sqlite/row.c
index 3419267..f1e1c43 100644
--- a/Modules/_sqlite/row.c
+++ b/Modules/_sqlite/row.c
@@ -183,8 +183,8 @@ static PyObject* pysqlite_row_richcompare(pysqlite_Row *self, PyObject *_other,
if (PyType_IsSubtype(Py_TYPE(_other), &pysqlite_RowType)) {
pysqlite_Row *other = (pysqlite_Row *)_other;
PyObject *res = PyObject_RichCompare(self->description, other->description, opid);
- if (opid == Py_EQ && res == Py_True
- || opid == Py_NE && res == Py_False) {
+ if ((opid == Py_EQ && res == Py_True)
+ || (opid == Py_NE && res == Py_False)) {
Py_DECREF(res);
return PyObject_RichCompare(self->data, other->data, opid);
}