summaryrefslogtreecommitdiff
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-12-09 22:04:10 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-12-09 22:04:10 +0200
commitd283194601bc7cb7c071317a8d53a89a3cbac40d (patch)
treee3740277727d3430a3d5d348d0c17b331cf4d7cd /profile.c
parent049873587037f41580a4759a7b903719d5c85b68 (diff)
downloadgawk-d283194601bc7cb7c071317a8d53a89a3cbac40d.tar.gz
Make bitflag checking consistent everywhere.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c6
1 files changed, 3 insertions, 3 deletions
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, "");