Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3 from mxcl/patch-1

Declare size variable
  • Loading branch information...
commit b728727219968c8a0c37fab9ffcf9b25c1a1c819 2 parents c997133 + 25a2ef2
@evilrix evilrix authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  include/fplib/FloatingAverage.h
View
1  include/fplib/FloatingAverage.h
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.