From 296f61a7c061beb5bc4d12b2d76599b329bd2055 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Tue, 11 Jan 2022 11:16:47 -0400 Subject: [PATCH] macos compilation fix macos clang won't apply the implicit `operator std::string()` from py::bytes here for some unknown reason. --- src/oxenmq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();