summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-06-23 19:58:46 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-06-23 19:58:46 (GMT)
commitbfdf4ecad06b542adae54029f861c9441b2079b7 (patch)
treea9319662534c32b6fda15d67fa2b78400caed241 /Modules/_cursesmodule.c
parentb28f6e7c7bbad58e23304e00c5c730bd44b50ba0 (diff)
downloadcpython-bfdf4ecad06b542adae54029f861c9441b2079b7.zip
cpython-bfdf4ecad06b542adae54029f861c9441b2079b7.tar.gz
cpython-bfdf4ecad06b542adae54029f861c9441b2079b7.tar.bz2
Properly use &&. Closes bug #434988.
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 0cc0437..beb8c7e 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;