convert unsigned int

This commit is contained in:
blackjok3r
2018-12-11 11:41:11 +08:00
parent bcf2def097
commit 5dcc40c3ad

View File

@@ -526,7 +526,8 @@ UniValue CBlockTreeDB::Snapshot(int top)
char amount[32];
sprintf(amount, "%.8f", (double) it->first / COIN);
obj.push_back( make_pair("amount", amount) );
obj.push_back( make_pair("segid", (uint32_t)komodo_segid32((char *)it->second.c_str())));
int segid = (short) komodo_segid32( (char *)it->second.c_str() );
obj.push_back( make_pair("segid",(int) segid)) );
total += it->first;
addressesSorted.push_back(obj);
topN++;