Skip to content

Commit 9636d6a

Browse files
committed
refactor: shed avoidable casts, follow-up to bitcoin#25611
1 parent bd589dd commit 9636d6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/evo/mnhftx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class MNHFTx
5050
[[nodiscard]] UniValue ToJson() const
5151
{
5252
UniValue obj(UniValue::VOBJ);
53-
obj.pushKV("versionBit", (int)versionBit);
53+
obj.pushKV("versionBit", versionBit);
5454
obj.pushKV("quorumHash", quorumHash.ToString());
5555
obj.pushKV("sig", sig.ToString());
5656
return obj;

src/llmq/debug.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ UniValue CDKGDebugSessionStatus::ToJson(CDeterministicMNManager& dmnman, CQuorum
3434

3535
ret.pushKV("llmqType", ToUnderlying(llmqType));
3636
ret.pushKV("quorumHash", quorumHash.ToString());
37-
ret.pushKV("quorumHeight", (int)quorumHeight);
37+
ret.pushKV("quorumHeight", quorumHeight);
3838
ret.pushKV("phase", ToUnderlying(phase));
3939

4040
ret.pushKV("sentContributions", statusBits.sentContributions);
@@ -61,10 +61,10 @@ UniValue CDKGDebugSessionStatus::ToJson(CDeterministicMNManager& dmnman, CQuorum
6161
if (detailLevel == 0) {
6262
v.count++;
6363
} else if (detailLevel == 1) {
64-
v.arr.push_back((int)idx);
64+
v.arr.push_back(idx);
6565
} else if (detailLevel == 2) {
6666
UniValue a(UniValue::VOBJ);
67-
a.pushKV("memberIndex", (int)idx);
67+
a.pushKV("memberIndex", idx);
6868
if (idx < dmnMembers.size()) {
6969
a.pushKV("proTxHash", dmnMembers[idx]->proTxHash.ToString());
7070
}

0 commit comments

Comments
 (0)