From a27a62e74caece828fd34c6247dae8870f52d194 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 22 Aug 2008 19:55:54 +0000 Subject: Silenced a compiler warning in the sqlite module Modules/_sqlite/row.c:187: warning: suggest parentheses around && within || Reviewed by Benjamin Peterson --- Misc/NEWS | 2 ++ Modules/_sqlite/row.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Misc/NEWS b/Misc/NEWS index 0a328bd..e5b37a9 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -21,6 +21,8 @@ Core and Builtins Library ------- +- Silenced a trivial compiler warning in the sqlite module. + What's New in Python 2.6 beta 3? ================================ 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); } -- cgit v0.12