mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
EvalScript(): cast to avoid signed/unsigned warning
This commit is contained in:
parent
061a001590
commit
024fa1cb44
@ -940,7 +940,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
|
|||||||
// ([sig ...] num_of_signatures [pubkey ...] num_of_pubkeys -- bool)
|
// ([sig ...] num_of_signatures [pubkey ...] num_of_pubkeys -- bool)
|
||||||
|
|
||||||
int i = 1;
|
int i = 1;
|
||||||
if (stack.size() < i)
|
if ((int)stack.size() < i)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int nKeysCount = CastToBigNum(stacktop(-i)).getint();
|
int nKeysCount = CastToBigNum(stacktop(-i)).getint();
|
||||||
@ -951,7 +951,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
|
|||||||
return false;
|
return false;
|
||||||
int ikey = ++i;
|
int ikey = ++i;
|
||||||
i += nKeysCount;
|
i += nKeysCount;
|
||||||
if (stack.size() < i)
|
if ((int)stack.size() < i)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int nSigsCount = CastToBigNum(stacktop(-i)).getint();
|
int nSigsCount = CastToBigNum(stacktop(-i)).getint();
|
||||||
@ -959,7 +959,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
|
|||||||
return false;
|
return false;
|
||||||
int isig = ++i;
|
int isig = ++i;
|
||||||
i += nSigsCount;
|
i += nSigsCount;
|
||||||
if (stack.size() < i)
|
if ((int)stack.size() < i)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Subset of script starting at the most recent codeseparator
|
// Subset of script starting at the most recent codeseparator
|
||||||
|
Loading…
x
Reference in New Issue
Block a user