From d283194601bc7cb7c071317a8d53a89a3cbac40d Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 9 Dec 2012 22:04:10 +0200 Subject: Make bitflag checking consistent everywhere. --- profile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'profile.c') diff --git a/profile.c b/profile.c index dfac5c10..b0d7d193 100644 --- a/profile.c +++ b/profile.c @@ -428,7 +428,7 @@ cleanup: case Op_concat: str = pp_list(pc->expr_count, NULL, - (pc->concat_flag & CSUBSEP) ? ", " : op2str(Op_concat)); + (pc->concat_flag & CSUBSEP) != 0 ? ", " : op2str(Op_concat)); pp_push(Op_concat, str, CAN_FREE); break; @@ -498,9 +498,9 @@ cleanup: case Op_sub_builtin: { const char *fname = "sub"; - if (pc->sub_flags & GSUB) + if ((pc->sub_flags & GSUB) != 0) fname = "gsub"; - else if (pc->sub_flags & GENSUB) + else if ((pc->sub_flags & GENSUB) != 0) fname = "gensub"; tmp = pp_list(pc->expr_count, "()", ", "); str = pp_concat(fname, tmp, ""); -- cgit v1.2.1