diff Modules/_cursesmodule.c @ 35094:98179c8281cd 2.4

Fix check for error condition
author Andrew M. Kuchling <amk@amk.ca>
date Wed, 15 Jun 2005 18:48:16 +0000
parents ee99db06c0eb
children 9df39c960bf1 9541369b0dca
line wrap: on
line diff
--- a/Modules/_cursesmodule.c	Wed Jun 15 18:45:27 2005 +0000
+++ b/Modules/_cursesmodule.c	Wed Jun 15 18:48:16 2005 +0000
@@ -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;