diff --git a/src/oxenmq.cpp b/src/oxenmq.cpp index a5c8d26..5022515 100644 --- a/src/oxenmq.cpp +++ b/src/oxenmq.cpp @@ -736,7 +736,7 @@ the background).)") if (auto* bytes = std::get_if(&conn)) { if (len(*bytes) != 32) throw std::logic_error{"Error: send(...) to=pubkey requires 32-byte pubkey"}; - conn.emplace(*bytes); + conn.emplace(static_cast(*bytes)); } bool request = kwargs.contains("request") && kwargs["request"].cast();