]> granicus.if.org Git - php/commitdiff
make sure operator precedence is not playing tricks on us
authorHartmut Holzgraefe <hholzgra@php.net>
Fri, 4 Jul 2003 13:24:47 +0000 (13:24 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Fri, 4 Jul 2003 13:24:47 +0000 (13:24 +0000)
(it worked before on gcc3.2/Linux and with VC++ 6, but not
 with gcc3.1/MacOSX)

ext/standard/dir.c

index 59ea66843fb4da49aea9452393542bc3c587a74d..0e7fe1e2377a029848bf5f77c13f52644ffb8416 100644 (file)
@@ -437,7 +437,7 @@ PHP_FUNCTION(glob)
                                continue;
                        }
 
-                       if (S_IFDIR != s.st_mode & S_IFMT) {
+                       if (S_IFDIR != (s.st_mode & S_IFMT)) {
                                continue;
                        }
                }