diff options
author | Graham Stott <grahams@gcc.gnu.org> | 2002-01-08 10:19:10 +0000 |
---|---|---|
committer | Graham Stott <grahams@gcc.gnu.org> | 2002-01-08 10:19:10 +0000 |
commit | 75ac8dec77966cf2d42f4f2584b2187ae3b70bee (patch) | |
tree | c2646448a0b0a909be26b83f63145eb974b06a42 | |
parent | 12f50451ab48d85c3c39e1438ac0ffb75ede9942 (diff) | |
download | gcc-75ac8dec77966cf2d42f4f2584b2187ae3b70bee.zip gcc-75ac8dec77966cf2d42f4f2584b2187ae3b70bee.tar.gz gcc-75ac8dec77966cf2d42f4f2584b2187ae3b70bee.tar.bz2 |
decl.c (BINDING_LEVEL): Add parenthesis.
* decl.c (BINDING_LEVEL): Add parenthesis.
(DEF_OPERATOR): Likewise.
From-SVN: r48636
-rw-r--r-- | gcc/cp/decl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 9cb605f..9402a6c 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -1,6 +1,6 @@ /* Process declarations and variables for C compiler. Copyright (C) 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001 Free Software Foundation, Inc. + 2001, 2002 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) This file is part of GNU CC. @@ -905,7 +905,7 @@ note_level_for_catch () /* For a binding between a name and an entity at a block scope, this is the `struct binding_level' for the block. */ #define BINDING_LEVEL(NODE) \ - (((struct tree_binding*)NODE)->scope.level) + (((struct tree_binding*)(NODE))->scope.level) /* A free list of CPLUS_BINDING nodes, connected by their TREE_CHAINs. */ @@ -12278,12 +12278,12 @@ grok_op_properties (decl, friendp) #define DEF_OPERATOR(NAME, CODE, MANGLING, ARITY, ASSN_P) \ if (ansi_opname (CODE) == name) \ { \ - operator_code = CODE; \ + operator_code = (CODE); \ break; \ } \ else if (ansi_assopname (CODE) == name) \ { \ - operator_code = CODE; \ + operator_code = (CODE); \ DECL_ASSIGNMENT_OPERATOR_P (decl) = 1; \ break; \ } |