build: fix errors for compilers other than g++ 4.3
This commit is contained in:
parent
6f787e3d36
commit
66a85b54e2
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ class ThreadContext;
|
|||
|
||||
|
||||
#if !CP_ANNOTATE
|
||||
class CPA : SimObject
|
||||
class CPA
|
||||
{
|
||||
public:
|
||||
enum flags {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue