Kaydet (Commit) bfdf4eca authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Properly use &&. Closes bug #434988.

üst b28f6e7c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment