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. --- int_array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'int_array.c') 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) -- cgit v1.2.3