summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-04-07 16:32:58 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-04-07 16:32:58 -0400
commit60fd253d795e312eae91c9ed32930e3304170176 (patch)
treea2975b5649e8aa5a631fabea9abacdb68f6938ba
parentdbb622812b29e5e67da8841409489d1d242a12b6 (diff)
downloadgobject-introspection-60fd253d795e312eae91c9ed32930e3304170176.tar.gz
scannermodule: Fix a bad check
Spotted by Coverity
-rw-r--r--giscanner/giscannermodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c
index 0ece7f7a..a5686ea3 100644
--- a/giscanner/giscannermodule.c
+++ b/giscanner/giscannermodule.c
@@ -695,7 +695,7 @@ pygi_collect_attributes (PyObject *self,
goto out;
}
- if (!PyTuple_Size (tuple) == 2)
+ if (PyTuple_Size (tuple) != 2)
{
PyErr_SetString(PyExc_IndexError,
"attribute item must be a tuple of length 2");