summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--symbol.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ba5bba55..daa1bbde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-04-10 Arnold D. Robbins <arnold@skeeve.com>
+
+ * symbol.c (free_bc_mempool): Change `first' from int to bool.
+
2017-04-07 Andrew J. Schorr <aschorr@telemetry-investments.com>
* awk.h (INSTRUCTION_POOL): Redefine as an array of structures so we
diff --git a/symbol.c b/symbol.c
index d63277b1..51e3cf23 100644
--- a/symbol.c
+++ b/symbol.c
@@ -916,7 +916,7 @@ free_bc_internal(INSTRUCTION *cp)
static void
free_bc_mempool(struct instruction_mem_pool *pool, int size)
{
- int first = 1;
+ bool first = true;
struct instruction_block *block, *next;
for (block = pool->block_list; block; block = next) {
@@ -929,7 +929,7 @@ free_bc_mempool(struct instruction_mem_pool *pool, int size)
}
next = block->next;
efree(block);
- first = 0;
+ first = false;
}
}