aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/dbus_wrap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/dbus_wrap.cpp b/core/dbus_wrap.cpp
index 7f221706..eaddce9f 100644
--- a/core/dbus_wrap.cpp
+++ b/core/dbus_wrap.cpp
@@ -8,6 +8,7 @@
#include <mutex>
#include <type_traits>
+#include "albit.h"
#include "logging.h"
@@ -21,7 +22,7 @@ void PrepareDBus()
static constexpr char libname[] = "libdbus-1.so.3";
auto load_func = [](auto &f, const char *name) -> void
- { f = reinterpret_cast<std::remove_reference_t<decltype(f)>>(GetSymbol(dbus_handle, name)); };
+ { f = al::bit_cast<std::remove_reference_t<decltype(f)>>(GetSymbol(dbus_handle, name)); };
#define LOAD_FUNC(x) do { \
load_func(p##x, #x); \
if(!p##x) \