diff options
| author | Jeff Garzik <[email protected]> | 2012-04-23 14:14:03 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-04-23 14:14:03 -0400 |
| commit | 7bd9c3a3cf408175019f85ec33cfd4364e5f5d32 (patch) | |
| tree | 9e05718e234582ad68ff0561717cbd115ea094d5 /src/script.h | |
| parent | Prefer 'unsigned int' for loop index variables tested against ::size() (diff) | |
| download | discoin-7bd9c3a3cf408175019f85ec33cfd4364e5f5d32.tar.xz discoin-7bd9c3a3cf408175019f85ec33cfd4364e5f5d32.zip | |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.h b/src/script.h index b13734be4..52922af16 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; |