Properly use &&. Closes bug #434988.

This commit is contained in:
Martin v. Löwis 2001-06-23 19:58:46 +00:00
parent b28f6e7c7b
commit bfdf4ecad0
1 changed files with 2 additions and 2 deletions

View 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;