ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/brains/BlockSnapshotManager.cpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/brains/BlockSnapshotManager.cpp (file contents):
Revision 2008 by tim, Sun Feb 13 19:10:25 2005 UTC vs.
Revision 2030 by gezelter, Tue Feb 15 15:24:54 2005 UTC

# Line 72 | Line 72 | BlockSnapshotManager::BlockSnapshotManager(SimInfo* in
72      }  
73      
74      for (int i = 0; i < nblocks; ++i) {
75 <        blocks_.push_back(SnapshotBlock(i, (i+1)*nSnapshotPerBlock_));    
75 >        blocks_.push_back(SnapshotBlock(i*nSnapshotPerBlock_, (i+1)*nSnapshotPerBlock_));    
76      }
77      //the last block may not have nSnapshotPerBlock frames, we need to consider this special situation
78      blocks_.back().second = nframes_;
79  
80 <    snapshots_.insert(snapshots_.begin(), nframes_, NULL);  
80 >    snapshots_.insert(snapshots_.begin(), nframes_,(Snapshot*)(NULL));  
81      
82   }
83  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines