1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/audio/last.fm/files/patch-src-libFingerprint-fplib-src-FloatingAverage.h
Tilman Keskinoz de2db4fa37 Fix build with clang
PR:             173906
Submitted by:   Rainer Hurling <rhurlin@gwdg.de>

add USE_DOS2UNIX, because the file that needs to be patch had ^M endings.

Feature safe:	yes
2012-12-02 12:46:56 +00:00

13 lines
460 B
C

--- src/libFingerprint/fplib/src/FloatingAverage.h.orig 2007-12-18 15:18:19.000000000 +0100
+++ src/libFingerprint/fplib/src/FloatingAverage.h 2012-11-25 13:23:10.000000000 +0100
@@ -78,6 +78,7 @@
{
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();