summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2005-06-15 18:46:50 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2005-06-15 18:46:50 (GMT)
commitb5e7ff4aeb0eb17c27114523768ae6597e189c7c (patch)
tree72b8b241102eac8f7ec8f9f87b9c2d43ce3ecb60 /Modules
parentd1badac99c01aeb15a261d262fff1c402c4f24e9 (diff)
downloadcpython-b5e7ff4aeb0eb17c27114523768ae6597e189c7c.zip
cpython-b5e7ff4aeb0eb17c27114523768ae6597e189c7c.tar.gz
cpython-b5e7ff4aeb0eb17c27114523768ae6597e189c7c.tar.bz2
Fix check for error condition
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_cursesmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 2e14abb..acff973 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2107,7 +2107,7 @@ PyCurses_Pair_Content(PyObject *self, PyObject *args)
return NULL;
}
- if (!pair_content(pair, &f, &b)) {
+ if (pair_content(pair, &f, &b)==ERR) {
PyErr_SetString(PyCursesError,
"Argument 1 was out of range. (1..COLOR_PAIRS-1)");
return NULL;