Revision: 125
http://libxtract.svn.sourceforge.net/libxtract/?rev=125&view=rev
Author: postlude
Date: 2011-03-30 10:05:07 +0000 (Wed, 30 Mar 2011)
Log Message:
-----------
- fixed typos in *result initialisation potentially fixing horrible bug
Modified Paths:
--------------
trunk/src/Makefile.am
trunk/src/scalar.c
Modified: trunk/src/Makefile.am
===================================================================
--- trunk/src/Makefile.am 2010-08-23 11:28:39 UTC (rev 124)
+++ trunk/src/Makefile.am 2011-03-30 10:05:07 UTC (rev 125)
@@ -13,3 +13,5 @@
libxtract_la_CFLAGS = $(FFT_DEFINE)
libxtract_la_SOURCES = $(SOURCES)
libxtract_la_LDFLAGS = -export-dynamic
+
+EXTRA_DIST = xtract_globals_private.h xtract_macros_private.h xtract_window_private.h
Modified: trunk/src/scalar.c
===================================================================
--- trunk/src/scalar.c 2010-08-23 11:28:39 UTC (rev 124)
+++ trunk/src/scalar.c 2011-03-30 10:05:07 UTC (rev 125)
@@ -74,7 +74,7 @@
int n = N;
- *result += 0.f;
+ *result = 0.f;
while(n--)
*result += powf(data[n] - *(float *)argv, 2);
@@ -95,7 +95,7 @@
int n = N;
- *result += 0.f;
+ *result = 0.f;
while(n--)
*result += fabsf(data[n] - *(float *)argv);
@@ -111,7 +111,7 @@
float temp = 0.f;
- *result += 0.f;
+ *result = 0.f;
while(n--){
temp = (data[n] - ((float *)argv)[0]) / ((float *)argv)[1];
@@ -130,7 +130,7 @@
float temp = 0.f;
- *result += 0.f;
+ *result = 0.f;
while(n--){
temp = (data[n] - ((float *)argv)[0]) / ((float *)argv)[1];
@@ -183,7 +183,7 @@
amps = data;
freqs = data + m;
- *result += 0.f;
+ *result = 0.f;
while(m--){
A += amps[m];
@@ -213,7 +213,7 @@
amps = data;
freqs = data + m;
- *result += 0.f;
+ *result = 0.f;
while(m--){
A += amps[m];
@@ -236,7 +236,7 @@
amps = data;
freqs = data + m;
- *result += 0.f;
+ *result = 0.f;
while(m--){
A += amps[m];
@@ -261,7 +261,7 @@
amps = data;
freqs = data + m;
- *result += 0.f;
+ *result = 0.f;
while(m--){
A += amps[m];
@@ -763,7 +763,7 @@
int n = N;
- *result += 0.f;
+ *result = 0.f;
while(n--)
*result += (*data++ ? 1 : 0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|