This commit is contained in:
jl777
2018-09-05 22:51:38 -11:00
parent 7d0ac4710e
commit d72d882bfe
2 changed files with 2 additions and 2 deletions

View File

@@ -402,7 +402,7 @@ int64_t correlate_price(int32_t height,int64_t *prices,int32_t n)
int32_t i,j; int64_t price = 0;
if ( n == 1 )
return(prices[0]);
mergesort(prices,n,sizeof(*prices),_increasing_uint64);
heapsort(prices,n,sizeof(*prices),_increasing_uint64);
for (i=0; i<n; i++)
{
j = (height + i) % n;