aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2015-03-19 21:43:40 -0400
committerAnders Broman <a.broman58@gmail.com>2015-03-20 05:32:48 +0000
commitd7b23278c38110adabc6c7fd974732faeafc6ad3 (patch)
tree57293a5ab231ffe5bec47eb44e60a9ca7022c2c6 /epan/wslua
parente7fd1bfdf75a76c1d39f9ba809a40e3c0859c7fa (diff)
(Benign) Fix warning [-Werror=logical-not-parentheses] (GCC 5.0.0)
Add some parentheses to prevent warning: "logical not is only applied to the left hand side of comparison" Change-Id: I8f11f93e12d24a1ea09032cf0198042fe9a87068 Reviewed-on: https://code.wireshark.org/review/7768 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/lrexlib_glib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/lrexlib_glib.c b/epan/wslua/lrexlib_glib.c
index 8a9fc6ab11..fd24c28a5c 100644
--- a/epan/wslua/lrexlib_glib.c
+++ b/epan/wslua/lrexlib_glib.c
@@ -78,8 +78,8 @@ extern flag_pair gregex_error_flags[];
static int getcflags (lua_State *L, int pos);
#define ALG_GETCFLAGS(L,pos) getcflags(L, pos)
-#define ALG_NOMATCH(res) (res) == FALSE
-#define ALG_ISMATCH(res) (res) == TRUE
+#define ALG_NOMATCH(res) ((res) == FALSE)
+#define ALG_ISMATCH(res) ((res) == TRUE)
#define ALG_SUBBEG(ud,n) getSubStartPos(ud,n)
#define ALG_SUBEND(ud,n) getSubEndPos(ud,n)
#define ALG_SUBLEN(ud,n) (ALG_SUBEND(ud,n) - ALG_SUBBEG(ud,n))