summaryrefslogtreecommitdiff
path: root/src/base/statistics.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-03-07 14:30:52 -0800
committerNathan Binkert <nate@binkert.org>2009-03-07 14:30:52 -0800
commit66a85b54e2f59e13b726f05a30bb115f2fb10dbc (patch)
tree7c9b2bed714a32101b736258f0757b32fd06ae8f /src/base/statistics.hh
parent6f787e3d368eb248aee0854d99ed55e332d80170 (diff)
downloadgem5-66a85b54e2f59e13b726f05a30bb115f2fb10dbc.tar.xz
build: fix errors for compilers other than g++ 4.3
Diffstat (limited to 'src/base/statistics.hh')
-rw-r--r--src/base/statistics.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh
index 6240be7a2..827c1d311 100644
--- a/src/base/statistics.hh
+++ b/src/base/statistics.hh
@@ -2495,7 +2495,7 @@ class VectorDistribution : public VectorDistBase<VectorDistribution, DistStor>
params->min = min;
params->max = max;
params->bucket_size = bkt;
- params->buckets = rint((max - min) / bkt + 1.0);
+ params->buckets = (size_type)rint((max - min) / bkt + 1.0);
this->setParams(params);
this->doInit(size);
return this->self();