aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog5
-rw-r--r--gprof/cg_print.c2
-rw-r--r--gprof/hist.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index b66a3e6..bae4f64 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-12 Kai Tietz <kai.tietz@onevision.com>
+
+ * cg_print.c: Force cast of sizeof to be a long.
+ * hist.c: Likewise.
+
2007-07-06 Nick Clifton <nickc@redhat.com>
* basic_blocks.c: Update copyright notice to refer to GPLv3.
diff --git a/gprof/cg_print.c b/gprof/cg_print.c
index ce8cbc4..104d049 100644
--- a/gprof/cg_print.c
+++ b/gprof/cg_print.c
@@ -76,7 +76,7 @@ print_header ()
}
printf (_("\ngranularity: each sample hit covers %ld byte(s)"),
- (long) hist_scale * sizeof (UNIT));
+ (long) hist_scale * (long) sizeof (UNIT));
if (print_time > 0.0)
printf (_(" for %.2f%% of %.2f seconds\n\n"),
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"),