build: fix errors for compilers other than g++ 4.3
authorNathan Binkert <nate@binkert.org>
Sat, 7 Mar 2009 22:30:52 +0000 (14:30 -0800)
committerNathan Binkert <nate@binkert.org>
Sat, 7 Mar 2009 22:30:52 +0000 (14:30 -0800)
src/base/cp_annotate.hh
src/base/statistics.hh

index 9ec39b6cbc712aaa15aeaa1e7f8d0dbda0a65634..13ced82de0ad0e1dfae71417b4ef2de6b63be76e 100644 (file)
@@ -53,7 +53,7 @@ class ThreadContext;
 
 
 #if !CP_ANNOTATE
-class CPA : SimObject
+class CPA
 {
   public:
     enum flags {
index 6240be7a21338ee426985c98441d5bd25a9a0b1a..827c1d311657f7e1b1020be3e47f864026c6a106 100644 (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();