[Python-checkins] python/dist/src/Modules _cursesmodule.c, 2.74, 2.75
akuchling@users.sourceforge.net
akuchling at users.sourceforge.net
Wed Jun 15 20:46:53 CEST 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16843
Modified Files:
_cursesmodule.c
Log Message:
Fix check for error condition
Index: _cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_cursesmodule.c,v
retrieving revision 2.74
retrieving revision 2.75
diff -u -d -r2.74 -r2.75
--- _cursesmodule.c 9 Jun 2005 17:53:27 -0000 2.74
+++ _cursesmodule.c 15 Jun 2005 18:46:50 -0000 2.75
@@ -2107,7 +2107,7 @@
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;
More information about the Python-checkins
mailing list