From 58cc32a6d4a179b3005f8e4fecbff932da681fba Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 24 May 2018 18:37:48 +0300 Subject: Improve lint checking for statement of just a constant. --- awkgram.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'awkgram.y') diff --git a/awkgram.y b/awkgram.y index e1c75e9f..bc8b4a6f 100644 --- a/awkgram.y +++ b/awkgram.y @@ -5906,7 +5906,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; } -- cgit v1.2.3