Skip to content

Commit

Permalink
Fix a compile issue on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood committed Jul 2, 2013
1 parent 895abfa commit 23fadf0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/filter/mixtureParticleFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ MixtureParticleFilter<SV,MV>::MixtureParticleFilter(Mixture<SV> * prior,
*/
bool ret = (dynamic_cast<MCPdf<SV> *>(this->_post))->ListOfSamplesSet(prior->ListOfSamplesGet());
assert(ret);
for(int i =0 ; i < prior.NumComponentsGet() ; i++)
for(int i =0 ; i < prior->NumComponentsGet() ; i++)
{
bool ret = (dynamic_cast<MCPdf<SV> *>(this->_post->ComponentGet(i)))->ListOfSamplesSet(prior->ComponentGet(i)->ListOfSamplesGet());
}

// Initialise vector of lists of samples
for(int i =0 ; i < prior.NumComponentsGet() ; i++)
for(int i =0 ; i < prior->NumComponentsGet() ; i++)
{
_old_samplesVec[i] = (prior.ComponentGet(i)->ListOfSamplesGet());
_old_samplesVec[i] = (prior->ComponentGet(i)->ListOfSamplesGet());
}
_new_samplesVec = _old_samplesVec;

Expand Down

0 comments on commit 23fadf0

Please sign in to comment.