]> granicus.if.org Git - python/commitdiff
Fix operator priority bug found thanks to gcc -Wall.
authorGuido van Rossum <guido@python.org>
Tue, 10 Dec 1996 15:23:00 +0000 (15:23 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Dec 1996 15:23:00 +0000 (15:23 +0000)
Modules/termios.c

index 4148d85dc159c6a06dbf8653c9f267b629cbb031..75f77a5bbc23e439b7265f109247fd205e66e461 100644 (file)
@@ -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;