summaryrefslogtreecommitdiff
path: root/int_array.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 /int_array.c
parent049873587037f41580a4759a7b903719d5c85b68 (diff)
downloadgawk-d283194601bc7cb7c071317a8d53a89a3cbac40d.tar.gz
Make bitflag checking consistent everywhere.
Diffstat (limited to 'int_array.c')
-rw-r--r--int_array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/int_array.c b/int_array.c
index a2c9e41e..2909f6f9 100644
--- a/int_array.c
+++ b/int_array.c
@@ -486,7 +486,7 @@ int_list(NODE *symbol, NODE *t)
for (j = 0; j < b->aicount; j++) {
/* index */
num = b->ainum[j];
- if (t->flags & AISTR) {
+ if ((t->flags & AISTR) != 0) {
sprintf(buf, "%ld", num);
subs = make_string(buf, strlen(buf));
subs->numbr = num;
@@ -498,7 +498,7 @@ int_list(NODE *symbol, NODE *t)
list[k++] = subs;
/* value */
- if (t->flags & AVALUE) {
+ if ((t->flags & AVALUE) != 0) {
r = b->aivalue[j];
if (r->type == Node_val) {
if ((t->flags & AVNUM) != 0)