changed ui to si init
This commit is contained in:
@@ -865,8 +865,8 @@ int64_t prices_syntheticprice(std::vector<uint16_t> vec, int32_t height, int32_t
|
|||||||
|
|
||||||
pricedata = (int64_t *)calloc(sizeof(*pricedata) * 3, 1 + PRICES_DAYWINDOW * 2 + PRICES_SMOOTHWIDTH);
|
pricedata = (int64_t *)calloc(sizeof(*pricedata) * 3, 1 + PRICES_DAYWINDOW * 2 + PRICES_SMOOTHWIDTH);
|
||||||
depth = errcode = 0;
|
depth = errcode = 0;
|
||||||
mpz_set_ui(mpzTotalPrice, 0);
|
mpz_set_si(mpzTotalPrice, 0);
|
||||||
mpz_set_ui(mpzDen, 0);
|
mpz_set_si(mpzDen, 0);
|
||||||
|
|
||||||
for (i = 0; i < vec.size(); i++)
|
for (i = 0; i < vec.size(); i++)
|
||||||
{
|
{
|
||||||
@@ -875,7 +875,7 @@ int64_t prices_syntheticprice(std::vector<uint16_t> vec, int32_t height, int32_t
|
|||||||
|
|
||||||
mpz_set_ui(mpzResult, 0); // clear result to test overflow (see below)
|
mpz_set_ui(mpzResult, 0); // clear result to test overflow (see below)
|
||||||
|
|
||||||
std::cerr << "prices_syntheticprice" << " i=" << i << " mpzTotalPrice=" << mpz_get_ui(mpzTotalPrice) << " value=" << value << " depth=" << depth << " opcode&KOMODO_PRICEMASK=" << (opcode & KOMODO_PRICEMASK) <<std::endl;
|
std::cerr << "prices_syntheticprice" << " i=" << i << " mpzTotalPrice=" << mpz_get_si(mpzTotalPrice) << " value=" << value << " depth=" << depth << " opcode&KOMODO_PRICEMASK=" << (opcode & KOMODO_PRICEMASK) <<std::endl;
|
||||||
switch (opcode & KOMODO_PRICEMASK)
|
switch (opcode & KOMODO_PRICEMASK)
|
||||||
{
|
{
|
||||||
case 0: // indices
|
case 0: // indices
|
||||||
|
|||||||
Reference in New Issue
Block a user