build: fix errors for compilers other than g++ 4.3

This commit is contained in:
Nathan Binkert 2009-03-07 14:30:52 -08:00
parent 6f787e3d36
commit 66a85b54e2
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ class ThreadContext;
#if !CP_ANNOTATE
class CPA : SimObject
class CPA
{
public:
enum flags {

View file

@ -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();