Wrong cast in comparison
This commit is contained in:
parent
253d191f13
commit
115f1ef588
@ -684,8 +684,8 @@ double calculateStddev(double *pdIn, int iLen) {
|
|||||||
* Compares two double values for the qsort function.
|
* Compares two double values for the qsort function.
|
||||||
*/
|
*/
|
||||||
int compareDoubles(const void* a, const void* b) {
|
int compareDoubles(const void* a, const void* b) {
|
||||||
int val_a = * ( (double*) a );
|
double val_a = * ( (double*) a );
|
||||||
int val_b = * ( (double*) b );
|
double val_b = * ( (double*) b );
|
||||||
|
|
||||||
if ( val_a == val_b )
|
if ( val_a == val_b )
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user