* search.c (SET_BINFO_ACCESS): Add parenthesis.
authorGraham Stott <grahams@gcc.gnu.org>
Tue, 8 Jan 2002 10:23:01 +0000 (10:23 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Tue, 8 Jan 2002 10:23:01 +0000 (10:23 +0000)
From-SVN: r48640

gcc/cp/search.c

index a6a9a6d46e9a30c9e6ec64cdc3a1f1e641c81b48..046960d41b3cd5406b1a72b8ba37d961a157c7ab 100644 (file)
@@ -1,7 +1,7 @@
 /* Breadth-first and depth-first routines for
    searching multiple-inheritance lattice for GNU C++.
    Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000 Free Software Foundation, Inc.
+   1999, 2000, 2002 Free Software Foundation, Inc.
    Contributed by Michael Tiemann (tiemann@cygnus.com)
 
 This file is part of GNU CC.
@@ -685,8 +685,8 @@ shared_unmarked_p (binfo, data)
 /* Set the access associated with NODE to ACCESS.  */
 
 #define SET_BINFO_ACCESS(NODE, ACCESS)                 \
-  ((TREE_LANG_FLAG_1 (NODE) = (ACCESS & 2) != 0),      \
-   (TREE_LANG_FLAG_6 (NODE) = (ACCESS & 1) != 0))
+  ((TREE_LANG_FLAG_1 (NODE) = ((ACCESS) & 2) != 0),    \
+   (TREE_LANG_FLAG_6 (NODE) = ((ACCESS) & 1) != 0))
 
 /* Called from access_in_type via dfs_walk.  Calculate the access to
    DATA (which is really a DECL) in BINFO.  */