summaryrefslogtreecommitdiffstats
path: root/Modules/termios.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-10 15:23:00 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-10 15:23:00 (GMT)
commit36dd0d27c4916dbe67545d3bcb18df06825fbb26 (patch)
treef3443ff39a022bbc9fd282a342963abc808a8749 /Modules/termios.c
parente29ed8fa7c1d20c13511e37401a984ba78b62169 (diff)
downloadcpython-36dd0d27c4916dbe67545d3bcb18df06825fbb26.zip
cpython-36dd0d27c4916dbe67545d3bcb18df06825fbb26.tar.gz
cpython-36dd0d27c4916dbe67545d3bcb18df06825fbb26.tar.bz2
Fix operator priority bug found thanks to gcc -Wall.
Diffstat (limited to 'Modules/termios.c')
-rw-r--r--Modules/termios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/termios.c b/Modules/termios.c
index 4148d85..75f77a5 100644
--- a/Modules/termios.c
+++ b/Modules/termios.c
@@ -52,7 +52,7 @@ termios_tcgetattr(self, args)
/* Convert the MIN and TIME slots to integer. On some systems, the
MIN and TIME slots are the same as the EOF and EOL slots. So we
only do this in noncanonical input mode. */
- if (mode.c_lflag & ICANON == 0) {
+ if ((mode.c_lflag & ICANON) == 0) {
v = PyInt_FromLong((long)mode.c_cc[VMIN]);
if (v == NULL)
return NULL;