Use fixed data types for some basic structures
[novacoin.git] / src / qt / multisiginputentry.cpp
index eb652f9..23458c2 100644 (file)
@@ -43,16 +43,16 @@ bool MultisigInputEntry::validate()
 
 CTxIn MultisigInputEntry::getInput()
 {
-    int nOutput = ui->transactionOutput->currentIndex();
+    unsigned int nOutput = ui->transactionOutput->currentIndex();
     CTxIn input(COutPoint(txHash, nOutput));
 
     return input;
 }
 
-int64 MultisigInputEntry::getAmount()
+int64_t MultisigInputEntry::getAmount()
 {
-    int64 amount = 0;
-    int nOutput = ui->transactionOutput->currentIndex();
+    int64_t amount = 0;
+    unsigned int nOutput = ui->transactionOutput->currentIndex();
     CTransaction tx;
     uint256 blockHash = 0;
 
@@ -115,12 +115,12 @@ void MultisigInputEntry::on_transactionId_textChanged(const QString &transaction
     uint256 blockHash = 0;
     if(!GetTransaction(txHash, tx, blockHash))
         return;
-    for(int i = 0; i < tx.vout.size(); i++)
+    for(unsigned int i = 0; i < tx.vout.size(); i++)
     {
         QString idStr;
         idStr.setNum(i);
         const CTxOut& txOut = tx.vout[i];
-        int64 amount = txOut.nValue;
+        int64_t amount = txOut.nValue;
         QString amountStr;
         amountStr.sprintf("%.6f", (double) amount / COIN);
         CScript script = txOut.scriptPubKey;