Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingBraiins Hashpower, buy and sell Bitcoin hashrateLayer Two Labs, drivechains for Bitcoin

Re: Bitcoind

To: mmalmi@cc.hut.fi Martti Malmi
It's in util.c ParseString.  I'm guessing the problem is incompatibility
between the type "unsigned int" and the type of str.npos, which is
size\_type.

Try changing the two "unsigned int"s to "size\_type".

old:
void ParseString(const string& str, char c, vector<string>& v)
{
unsigned int i1 = 0;
unsigned int i2;
do
{
i2 = str.find(c, i1);
v.push\_back(str.substr(i1, i2-i1));
i1 = i2+1;
}
while (i2 != str.npos);
}

new:
void ParseString(const string& str, char c, vector<string>& v)
{
size\_type i1 = 0;
size\_type i2;
do
{
i2 = str.find(c, i1);
v.push\_back(str.substr(i1, i2-i1));
i1 = i2+1;
}
while (i2 != str.npos);
}

mmalmi@cc.hut.fi wrote:

All writings · Satoshi era timeline

0:000:00