aboutsummaryrefslogtreecommitdiff
path: root/src/script.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2012-04-23 14:14:03 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-04-23 14:14:03 -0400
commit7bd9c3a3cf408175019f85ec33cfd4364e5f5d32 (patch)
tree9e05718e234582ad68ff0561717cbd115ea094d5 /src/script.h
parentfaf705a42a05197d89abfc31672ced94d268767f (diff)
SigOp and orphan-tx constants and counts are always unsigned.
Fixes several sign-comparison warnings.
Diffstat (limited to 'src/script.h')
-rw-r--r--src/script.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.h b/src/script.h
index b13734be41..52922af16f 100644
--- a/src/script.h
+++ b/src/script.h
@@ -491,11 +491,11 @@ public:
// CHECKMULTISIGs serialized in scriptSigs are
// counted more accurately, assuming they are of the form
// ... OP_N CHECKMULTISIG ...
- int GetSigOpCount(bool fAccurate) const;
+ unsigned int GetSigOpCount(bool fAccurate) const;
// Accurately count sigOps, including sigOps in
// pay-to-script-hash transactions:
- int GetSigOpCount(const CScript& scriptSig) const;
+ unsigned int GetSigOpCount(const CScript& scriptSig) const;
bool IsPayToScriptHash() const;