aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-10-16 21:10:59 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-10-16 21:10:59 +0300
commit4a3d2f254868347ddf54bc649c1ebf1d0af5ae0c (patch)
tree8e8c38efdff41e5e3f536b4e5e3e89586baa8ea8
parent8848f21e0a2e0223a3963f84cf24aa1bbf4f7e55 (diff)
downloadegawk-4a3d2f254868347ddf54bc649c1ebf1d0af5ae0c.tar.gz
egawk-4a3d2f254868347ddf54bc649c1ebf1d0af5ae0c.tar.bz2
egawk-4a3d2f254868347ddf54bc649c1ebf1d0af5ae0c.zip
Fix compiler warning from Cygwin.
-rwxr-xr-xChangeLog1
-rw-r--r--profile.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f4a49bab..68062735 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
* debug.c (print_instruction): Handle comments for case and default.
Simplify printing of comments.
* profile.c (pprint): Handle comments for case and default.
+ Remove compiler warning in Op_and/Op_or handling.
2018-10-14 Arnold D. Robbins <arnold@skeeve.com>
diff --git a/profile.c b/profile.c
index e6a528d3..3a4ec04d 100644
--- a/profile.c
+++ b/profile.c
@@ -420,7 +420,7 @@ cleanup:
emalloc(str, char *, len, "pprint");
sprintf(str, "%s%s%s%.*s %s", t1->pp_str, op2str(pc->opcode),
pc->comment->memory->stptr,
- indent_level + 1, tabs, t2->pp_str);
+ (int) indent_level + 1, tabs, t2->pp_str);
}
pp_free(t1);
pp_free(t2);