summaryrefslogtreecommitdiff
path: root/src/include/regex/regguts.h
diff options
context:
space:
mode:
authorBruce Momjian2005-05-25 21:40:43 +0000
committerBruce Momjian2005-05-25 21:40:43 +0000
commit7a798934427df3e4ba8f59870709f748349d8236 (patch)
tree6efb241fa6cfad56ba3d8534f90ae454c9d8645c /src/include/regex/regguts.h
parented763c65d16c434de4658402aacd999653420f99 (diff)
Add parentheses to macros when args are used in computations. Without
them, the executation behavior could be unexpected.
Diffstat (limited to 'src/include/regex/regguts.h')
-rw-r--r--src/include/regex/regguts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/regex/regguts.h b/src/include/regex/regguts.h
index e33887efb6..230b31fdd1 100644
--- a/src/include/regex/regguts.h
+++ b/src/include/regex/regguts.h
@@ -63,7 +63,7 @@
/* function-pointer declarator */
#ifndef FUNCPTR
-#define FUNCPTR(name, args) (*name) args
+#define FUNCPTR(name, args) (*(name)) args
#endif
/* memory allocation */