Skip to content

Commit

Permalink
Merge pull request #3 from mxcl/patch-1
Browse files Browse the repository at this point in the history
Declare size variable
  • Loading branch information
evilrix committed Oct 1, 2012
2 parents c997133 + 25a2ef2 commit b728727
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/fplib/FloatingAverage.h
Expand Up @@ -82,6 +82,7 @@ class FloatingAverage
{
T real_sum = 0;
const T* pCircularBuffer = m_values.get_buffer();
const int size = m_values.size();
for ( int i = 0; i < size; ++i )
real_sum += pCircularBuffer[i];
return abs(real_sum - m_sum) / this->size();
Expand Down

0 comments on commit b728727

Please sign in to comment.