aboutsummaryrefslogtreecommitdiff
path: root/src/rpcrawtransaction.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-07-05 13:25:52 -0400
committerGavin Andresen <gavinandresen@gmail.com>2012-07-05 13:26:27 -0400
commitdab9fa7f919807885bd693c4fa14ed740792c294 (patch)
treec629ba7da872cb8b3a24fccfaeb984220c79c7de /src/rpcrawtransaction.cpp
parentb47d2bc164bd21d4bec988fa8abfecc74d5ce5da (diff)
Use unsigned ints to fix signed/unsigned warnings
Diffstat (limited to 'src/rpcrawtransaction.cpp')
-rw-r--r--src/rpcrawtransaction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp
index 0e8c806834..63c2dfe0ac 100644
--- a/src/rpcrawtransaction.cpp
+++ b/src/rpcrawtransaction.cpp
@@ -75,12 +75,12 @@ TxToJSON(const CTransaction& tx, const uint256 hashBlock, Object& entry)
}
entry.push_back(Pair("vin", vin));
Array vout;
- for (int i = 0; i < tx.vout.size(); i++)
+ for (unsigned int i = 0; i < tx.vout.size(); i++)
{
const CTxOut& txout = tx.vout[i];
Object out;
out.push_back(Pair("value", ValueFromAmount(txout.nValue)));
- out.push_back(Pair("n", i));
+ out.push_back(Pair("n", (boost::int64_t)i));
Object o;
ScriptPubKeyToJSON(txout.scriptPubKey, o);
out.push_back(Pair("scriptPubKey", o));
@@ -402,7 +402,7 @@ Value signrawtransaction(const Array& params, bool fHelp)
const CKeyStore& keystore = (fGivenKeys ? tempKeystore : *pwalletMain);
// Sign what we can:
- for (int i = 0; i < mergedTx.vin.size(); i++)
+ for (unsigned int i = 0; i < mergedTx.vin.size(); i++)
{
CTxIn& txin = mergedTx.vin[i];
if (mapPrevOut.count(txin.prevout) == 0)