From: Guido van Rossum Date: Tue, 10 Dec 1996 15:23:00 +0000 (+0000) Subject: Fix operator priority bug found thanks to gcc -Wall. X-Git-Tag: v1.5a1~823 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36dd0d27c4916dbe67545d3bcb18df06825fbb26;p=thirdparty%2FPython%2Fcpython.git Fix operator priority bug found thanks to gcc -Wall. --- diff --git a/Modules/termios.c b/Modules/termios.c index 4148d85dc159..75f77a5bbc23 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;