From 97773a0db9bcbafa16afcd1461ed6eead7f192a8 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 5 Mar 2018 19:29:54 +0200 Subject: Minor cleanups (bool to int, move a macro). --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 1a1d8cc2..9ca29dac 100644 --- a/io.c +++ b/io.c @@ -3535,12 +3535,12 @@ rs1scan(IOBUF *iop, struct recmatch *recm, SCANSTATE *state) /* Thus, the check for \n here; big speedup ! */ if (rs != '\n' && gawk_mb_cur_max > 1) { int len = iop->dataend - bp; - int found = 0; + bool found = false; memset(& mbs, 0, sizeof(mbstate_t)); do { if (*bp == rs) - found = 1; + found = true; if (is_valid_character(*bp)) mbclen = 1; else -- cgit v1.2.3