bsd
This commit is contained in:
@@ -48,7 +48,7 @@ one other technical note is that komodod has the insight-explorer extensions bui
|
||||
#include <univalue.h>
|
||||
#include <exception>
|
||||
#include "../komodo_defs.h"
|
||||
#include <stdlib.h>
|
||||
#include <bsd/stdlib.h>
|
||||
|
||||
extern int32_t KOMODO_CONNECTING,KOMODO_CCACTIVATE;
|
||||
extern uint32_t ASSETCHAINS_CC;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user