From: Martin v. Löwis Date: Sat, 23 Jun 2001 19:58:46 +0000 (+0000) Subject: Properly use &&. Closes bug #434988. X-Git-Tag: v2.2a3~1448 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfdf4ecad06b542adae54029f861c9441b2079b7;p=thirdparty%2FPython%2Fcpython.git Properly use &&. Closes bug #434988. --- diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 0cc04370c3c0..beb8c7ef866e 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -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;