diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-03-05 19:29:54 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-03-05 19:29:54 +0200 |
commit | 97773a0db9bcbafa16afcd1461ed6eead7f192a8 (patch) | |
tree | 8aac8a228c54762b18391bc284de043eb67dee24 /io.c | |
parent | 28e37a0dc466d96478c3e6a8f087b7be097ed318 (diff) | |
download | egawk-97773a0db9bcbafa16afcd1461ed6eead7f192a8.tar.gz egawk-97773a0db9bcbafa16afcd1461ed6eead7f192a8.tar.bz2 egawk-97773a0db9bcbafa16afcd1461ed6eead7f192a8.zip |
Minor cleanups (bool to int, move a macro).
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |