diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-05-01 17:57:12 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-05-01 17:57:12 -0400 |
commit | 024fa1cb44b8ec577fef07e7b37a4e5b0501dbea (patch) | |
tree | c36166ae3d17a09d4cb813f11a6d488dbed4b67a /src/script.cpp | |
parent | 061a00159099cd4236e9bc70d09731c8cb89afd9 (diff) |
EvalScript(): cast to avoid signed/unsigned warning
Diffstat (limited to 'src/script.cpp')
-rw-r--r-- | src/script.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script.cpp b/src/script.cpp index 65e9b7c9a2..0b103a80bc 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -940,7 +940,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co // ([sig ...] num_of_signatures [pubkey ...] num_of_pubkeys -- bool) int i = 1; - if (stack.size() < i) + if ((int)stack.size() < i) return false; int nKeysCount = CastToBigNum(stacktop(-i)).getint(); @@ -951,7 +951,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co return false; int ikey = ++i; i += nKeysCount; - if (stack.size() < i) + if ((int)stack.size() < i) return false; int nSigsCount = CastToBigNum(stacktop(-i)).getint(); @@ -959,7 +959,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co return false; int isig = ++i; i += nSigsCount; - if (stack.size() < i) + if ((int)stack.size() < i) return false; // Subset of script starting at the most recent codeseparator |