aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-05-24 18:37:48 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-05-24 18:37:48 +0300
commit58cc32a6d4a179b3005f8e4fecbff932da681fba (patch)
treef7b47df0c35756b187b7efebdde644c8008717cd /awkgram.c
parent524c41752a1043dce23fdb7e5893ad89c0944c92 (diff)
downloadegawk-58cc32a6d4a179b3005f8e4fecbff932da681fba.tar.gz
egawk-58cc32a6d4a179b3005f8e4fecbff932da681fba.tar.bz2
egawk-58cc32a6d4a179b3005f8e4fecbff932da681fba.zip
Improve lint checking for statement of just a constant.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/awkgram.c b/awkgram.c
index 13a7be70..493109fe 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -8326,7 +8326,7 @@ add_lint(INSTRUCTION *list, LINTTYPE linttype)
}
}
- if (ip->opcode == Op_push) { /* run-time warning */
+ if (ip->opcode == Op_push || ip->opcode == Op_push_i) { /* run-time warning */
list_append(list, instruction(Op_lint));
list->lasti->lint_type = linttype;
}