qint64 for MSVC compiler

This commit is contained in:
adityapk
2018-10-30 14:36:41 -07:00
parent 8e0f816d37
commit 75ef105869
3 changed files with 4 additions and 7 deletions

View File

@@ -87,7 +87,7 @@ void SentTxStore::addToSentTx(Tx tx, QString txid) {
QJsonObject txItem;
txItem["type"] = "sent";
txItem["from"] = tx.fromAddr;
txItem["datetime"] = QDateTime().currentMSecsSinceEpoch() / 1000;
txItem["datetime"] = QDateTime().currentMSecsSinceEpoch() / (qint64)1000;
txItem["address"] = QString(); // The sent address is blank, to be consistent with t-Addr sent behaviour
txItem["txid"] = txid;
txItem["amount"] = -totalAmount;