Skip to content

Commit

Permalink
Fix some compile-time issues on gcc-13 on mingw64
Browse files Browse the repository at this point in the history
Got some warnings about amiguous calls. Fixed.
  • Loading branch information
cculianu committed Nov 9, 2023
1 parent ee10d5c commit 74338ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Servers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,7 @@ void Server::impl_get_first_use(Client *c, const RPC::BatchId batchId, const RPC
// note that we are implementing this the way Electrs does, which throws an error here rather than
// returning null for unknown scripthash and/or address.
const auto msg = addr.isEmpty()
? QString("scripthash %1 not found").arg(Util::ToHexFast(scriptHash))
? QString("scripthash %1 not found").arg(QString::fromLatin1(Util::ToHexFast(scriptHash)))
: QString("address %1 not found").arg(addr);
throw RPCError(msg, RPC::ErrorCodes::Code_ItemNotFound);
}
Expand Down
1 change: 1 addition & 0 deletions src/SubStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class SubStatus {
SubStatus(const DSProof &od) { var.emplace<DSP>(od); }
SubStatus(DSProof &&od) { var.emplace<DSP>(std::move(od)); }
SubStatus(const std::optional<BlockHeight> &obh) noexcept { this->operator=(obh); }
SubStatus(BlockHeight bh) noexcept : var{static_cast<BH>(bh)} {}

SubStatus &operator=(const SubStatus &o) = default;
SubStatus &operator=(SubStatus && o) = default;
Expand Down

0 comments on commit 74338ba

Please sign in to comment.