]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Properly use &&. Closes bug #434988.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 23 Jun 2001 19:58:46 +0000 (19:58 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 23 Jun 2001 19:58:46 +0000 (19:58 +0000)
Modules/_cursesmodule.c

index 0cc04370c3c0d61e0efaf4e54c3c8639805d1df8..beb8c7ef866e894a7df34377c4100cc04206f0e8 100644 (file)
@@ -189,8 +189,8 @@ PyCurses_ConvertToChtype(PyObject *obj, chtype *ch)
 {
   if (PyInt_Check(obj)) {
     *ch = (chtype) PyInt_AsLong(obj);
-  } else if(PyString_Check(obj) &
-           (PyString_Size(obj) == 1)) {
+  } else if(PyString_Check(obj) 
+           && (PyString_Size(obj) == 1)) {
     *ch = (chtype) *PyString_AsString(obj);
   } else {
     return 0;