aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-07-07 15:42:48 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-07-07 15:42:48 +0300
commit4cd70811e7e335fe568f62c564ac2bef0515694f (patch)
tree18c56e091b3ffd276d8c64b7cb9f4615ba86dfc0 /builtin.c
parent6f10e610abfc6cdd68147ad817edd50440ed38ab (diff)
downloadegawk-4cd70811e7e335fe568f62c564ac2bef0515694f.tar.gz
egawk-4cd70811e7e335fe568f62c564ac2bef0515694f.tar.bz2
egawk-4cd70811e7e335fe568f62c564ac2bef0515694f.zip
Fix GCC 7.1 warnings (incrementing/decrementing booleans).
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin.c b/builtin.c
index 18c01f6e..1eb2e3eb 100644
--- a/builtin.c
+++ b/builtin.c
@@ -943,7 +943,7 @@ check_pos:
*cur = get_number_si(arg);
if (*cur < 0 && cur == &fw) {
*cur = -*cur;
- lj++;
+ lj = true;
}
if (cur == &prec) {
if (*cur >= 0)
@@ -970,7 +970,7 @@ check_pos:
goto retry;
}
fill = sp; /* if left justified then other */
- lj++; /* filling is ignored */
+ lj = true; /* filling is ignored */
goto check_pos;
case '.':
if (cur != &fw)