summaryrefslogtreecommitdiff
path: root/profile.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2020-06-10 09:52:45 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2020-06-10 09:52:45 -0400
commita53ba84a4c0c8cfcc944d08aa30d062afc6df9a3 (patch)
tree9bd5879ea9ec4034eb1855c219358843c6c790ce /profile.c
parentdff45aba93a56a50d5ad26c5ef1597abc1e2fe79 (diff)
downloadgawk-a53ba84a4c0c8cfcc944d08aa30d062afc6df9a3.tar.gz
Convert exec_count to unsigned long long.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/profile.c b/profile.c
index e9c9053a..f959c228 100644
--- a/profile.c
+++ b/profile.c
@@ -135,7 +135,7 @@ init_profiling_signals()
/* indent --- print out enough tabs */
static void
-indent(long long count)
+indent(unsigned long long count)
{
int i;
@@ -143,7 +143,7 @@ indent(long long count)
if (count == 0)
fprintf(prof_fp, "\t");
else
- fprintf(prof_fp, "%6lld ", count);
+ fprintf(prof_fp, "%6llu ", count);
}
assert(indent_level >= 0);
@@ -297,7 +297,7 @@ pprint(INSTRUCTION *startp, INSTRUCTION *endp, int flags)
ip2 = (pc + 1)->lasti;
if (do_profile && ip1->exec_count > 0)
- fprintf(prof_fp, " # %lld", ip1->exec_count);
+ fprintf(prof_fp, " # %llu", ip1->exec_count);
end_line(ip1);
skip_comment = true;
@@ -1043,7 +1043,7 @@ cleanup:
ip1 = pc->branch_if;
if (ip1->exec_count > 0)
- fprintf(prof_fp, " # %lld", ip1->exec_count);
+ fprintf(prof_fp, " # %llu", ip1->exec_count);
ip1 = end_line(ip1);
indent_in();
if (pc->comment != NULL)