Commit caa2b669 authored by Guido van Rossum's avatar Guido van Rossum

Fix operator priority bug found thanks to gcc -Wall.

parent 8b97bdb4
......@@ -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;
......
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