aboutsummaryrefslogtreecommitdiff
path: root/gprof/hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'gprof/hist.c')
-rw-r--r--gprof/hist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprof/hist.c b/gprof/hist.c
index aa3f7ef..0b86c03 100644
--- a/gprof/hist.c
+++ b/gprof/hist.c
@@ -464,7 +464,7 @@ print_header (int prefix)
if (bsd_style_output)
{
printf (_("\ngranularity: each sample hit covers %ld byte(s)"),
- (long) hist_scale * sizeof (UNIT));
+ (long) hist_scale * (long) sizeof (UNIT));
if (total_time > 0.0)
{
printf (_(" for %.2f%% of %.2f %s\n\n"),