Skip to content

Commit

Permalink
Fix audit 32-bit build error
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirAbrams committed Dec 18, 2021
1 parent 6ade845 commit 3c8f453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bdap/audit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ bool BuildAuditJson(const CAudit& audit, UniValue& oAudit)
oAuditHashes.push_back(Pair("audit_hash" + std::to_string(counter), stringFromVch(vchAudit)));
}
oAudit.push_back(Pair("version", std::to_string(audit.Version())));
oAudit.push_back(Pair("audit_count", auditData.vAuditData.size()));
oAudit.push_back(Pair("audit_count", (int)auditData.vAuditData.size()));
oAudit.push_back(Pair("audit_hashes", oAuditHashes));
oAudit.push_back(Pair("timestamp", std::to_string(auditData.nTimeStamp)));
oAudit.push_back(Pair("owner", stringFromVch(audit.vchOwnerFullObjectPath)));
Expand All @@ -268,7 +268,7 @@ bool BuildVerifyAuditJson(const CAudit& audit, UniValue& oAudit)
CAuditData auditData = audit.GetAuditData();

oAudit.push_back(Pair("version", std::to_string(audit.Version())));
oAudit.push_back(Pair("audit_count", auditData.vAuditData.size()));
oAudit.push_back(Pair("audit_count", (int)auditData.vAuditData.size()));
oAudit.push_back(Pair("timestamp", std::to_string(auditData.nTimeStamp)));
oAudit.push_back(Pair("owner", stringFromVch(audit.vchOwnerFullObjectPath)));
oAudit.push_back(Pair("signed", audit.IsSigned() ? "True" : "False"));
Expand Down

0 comments on commit 3c8f453

Please sign in to comment.