From 66a85b54e2f59e13b726f05a30bb115f2fb10dbc Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sat, 7 Mar 2009 14:30:52 -0800 Subject: build: fix errors for compilers other than g++ 4.3 --- src/base/statistics.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/statistics.hh') 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 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(); -- cgit v1.2.3