From 75ac8dec77966cf2d42f4f2584b2187ae3b70bee Mon Sep 17 00:00:00 2001 From: Graham Stott Date: Tue, 8 Jan 2002 10:19:10 +0000 Subject: [PATCH] decl.c (BINDING_LEVEL): Add parenthesis. * decl.c (BINDING_LEVEL): Add parenthesis. (DEF_OPERATOR): Likewise. From-SVN: r48636 --- gcc/cp/decl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 9cb605f198f..9402a6c0f1b 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; \ } -- 2.30.2