From b492c3acccb3f8c97559ddfc2a25f25953a026d2 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 25 May 2005 21:40:43 +0000 Subject: Add parentheses to macros when args are used in computations. Without them, the executation behavior could be unexpected. --- src/include/regex/regguts.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/regex/regguts.h') diff --git a/src/include/regex/regguts.h b/src/include/regex/regguts.h index b2e042d7195..1fb1e748a28 100644 --- a/src/include/regex/regguts.h +++ b/src/include/regex/regguts.h @@ -27,7 +27,7 @@ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $PostgreSQL: pgsql/src/include/regex/regguts.h,v 1.3 2003/11/29 22:41:10 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/regex/regguts.h,v 1.4 2005/05/25 21:40:42 momjian Exp $ */ @@ -63,7 +63,7 @@ /* function-pointer declarator */ #ifndef FUNCPTR -#define FUNCPTR(name, args) (*name) args +#define FUNCPTR(name, args) (*(name)) args #endif /* memory allocation */ -- cgit v1.2.3