From 7bd9c3a3cf408175019f85ec33cfd4364e5f5d32 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Mon, 23 Apr 2012 14:14:03 -0400 Subject: SigOp and orphan-tx constants and counts are always unsigned. Fixes several sign-comparison warnings. --- src/script.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script.h') 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; -- cgit v1.2.3